ci: add nightly build job to rnu the no-panic test

This commit is contained in:
Jorge Aparicio 2018-07-25 14:48:49 -05:00
parent 6454687134
commit 657906b30c
2 changed files with 9 additions and 7 deletions

View file

@ -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

View file

@ -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