aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/ci/script.sh
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2021-07-13 01:44:06 +0100
committerGravatar Adam Greig <adam@adamgreig.com> 2021-07-13 01:44:06 +0100
commit1e8226868bebdbbe52fcac00f556f2a1179f5865 (patch)
tree1c67ae4f878acc7eb151594b4013403cdf3782e3 /cortex-m-rt/ci/script.sh
parentc88b29b2e58d60bf069b9474356097d4a91275ea (diff)
downloadcortex-m-1e8226868bebdbbe52fcac00f556f2a1179f5865.tar.gz
cortex-m-1e8226868bebdbbe52fcac00f556f2a1179f5865.tar.zst
cortex-m-1e8226868bebdbbe52fcac00f556f2a1179f5865.zip
Only run tests on stable and nightly, not MSRV.
Diffstat (limited to 'cortex-m-rt/ci/script.sh')
-rwxr-xr-xcortex-m-rt/ci/script.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/cortex-m-rt/ci/script.sh b/cortex-m-rt/ci/script.sh
index eea81b8..08ff863 100755
--- a/cortex-m-rt/ci/script.sh
+++ b/cortex-m-rt/ci/script.sh
@@ -41,7 +41,10 @@ main() {
""
)
if [ "$TARGET" != x86_64-unknown-linux-gnu ]; then
- RUSTDOCFLAGS="-Cpanic=abort" cargo test --doc
+ # Only test on stable and nightly, not MSRV.
+ if [ "$TRAVIS_RUST_VERSION" = stable ] || [ "$TRAVIS_RUST_VERSION" = nightly ]; then
+ RUSTDOCFLAGS="-Cpanic=abort" cargo test --doc
+ fi
for linker in "${linkers[@]}"; do
for ex in "${examples[@]}"; do