aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2020-06-11 18:21:01 +0200
committerGitHub <noreply@github.com>2020-06-11 18:21:01 +0200
commit4397fbf76285658a108b0f17665f4024d97cfcb3 (patch)
tree59a538e35f168e07d879c79e70a77ba4f737878a /ci
parent28e963488fe487f3894e80de07bad08a148f5aa0 (diff)
parent5f61f7b75fa049af0f21576232c3d45022a8af77 (diff)
Merge pull request #319 from AfoHT/fixoddex
Use cargo feature instead of conditional compilation hacks
Diffstat (limited to 'ci')
-rw-r--r--ci/script.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh
index c9a9c05..7743b8b 100644
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -102,8 +102,18 @@ main() {
if [ $TARGET = thumbv6m-none-eabi ]; then
cargo check --target $T --examples
+
+ # Check examples with specific features not compatible with MSRV
+ if [[ $TRAVIS_RUST_VERSION != 1.*.* ]]; then
+ cargo check --target $T --examples --features __min_r1_43
+ fi
else
cargo check --target $T --examples --features __v7
+
+ # Check examples with specific features not compatible with MSRV
+ if [[ $TRAVIS_RUST_VERSION != 1.*.* ]]; then
+ cargo check --target $T --examples --features __v7,__min_r1_43
+ fi
fi
cargo check -p homogeneous --target $T --examples