Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 6af6e1b

Browse files
committed
ci: add nightly build job to rnu the no-panic test
1 parent ce02130 commit 6af6e1b

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ matrix:
1717
- env: TARGET=x86_64-unknown-linux-gnu
1818
- env: TARGET=cargo-fmt
1919
rust: beta
20+
# no-panic link test
21+
- env: TARGET=armv7-unknown-linux-gnueabihf
22+
rust: nightly
2023

2124
before_install: set -e
2225

ci/script.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@ main() {
66
return
77
fi
88

9+
# test that the functions don't contain invocations of `panic!`
10+
if [ $TRAVIS_RUST_VERSION ]; then
11+
cross build --release --target $TARGET --example no-panic
12+
return
13+
fi
14+
915
# quick check
1016
cargo check
1117

1218
# check that we can source import libm into compiler-builtins
1319
cargo check --package cb
1420

15-
# test that the functions don't contain invocations of `panic!`
16-
case $TARGET in
17-
armv7-unknown-linux-gnueabihf)
18-
cross build --release --target $TARGET --example no-panic
19-
;;
20-
esac
21-
2221
# run unit tests
2322
cross test --lib --features checked --target $TARGET --release
2423

0 commit comments

Comments
 (0)