ci: add nightly build job to rnu the no-panic test
This commit is contained in:
parent
6454687134
commit
657906b30c
2 changed files with 9 additions and 7 deletions
|
|
@ -17,6 +17,9 @@ matrix:
|
|||
- env: TARGET=x86_64-unknown-linux-gnu
|
||||
- env: TARGET=cargo-fmt
|
||||
rust: beta
|
||||
# no-panic link test
|
||||
- env: TARGET=armv7-unknown-linux-gnueabihf
|
||||
rust: nightly
|
||||
|
||||
before_install: set -e
|
||||
|
||||
|
|
|
|||
|
|
@ -6,19 +6,18 @@ main() {
|
|||
return
|
||||
fi
|
||||
|
||||
# test that the functions don't contain invocations of `panic!`
|
||||
if [ $TRAVIS_RUST_VERSION ]; then
|
||||
cross build --release --target $TARGET --example no-panic
|
||||
return
|
||||
fi
|
||||
|
||||
# quick check
|
||||
cargo check
|
||||
|
||||
# check that we can source import libm into compiler-builtins
|
||||
cargo check --package cb
|
||||
|
||||
# test that the functions don't contain invocations of `panic!`
|
||||
case $TARGET in
|
||||
armv7-unknown-linux-gnueabihf)
|
||||
cross build --release --target $TARGET --example no-panic
|
||||
;;
|
||||
esac
|
||||
|
||||
# run unit tests
|
||||
cross test --lib --features checked --target $TARGET --release
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue