aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2020-06-10 12:07:23 +0000
committerHenrik Tjäder <henrik@tjaders.com>2020-06-10 13:31:48 +0000
commit5f61f7b75fa049af0f21576232c3d45022a8af77 (patch)
treeef5fd8e6b705f396eccdc34ec2b26ff29866ab88 /ci
parent0b3cc87f2d590868963c32543ac3772a0b2dee28 (diff)
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 7b86e52..a6bb455 100644
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -96,8 +96,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