From 06c1e2f9b47b5bc9de049e1e1edfed27d8dd2c58 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 16 Dec 2018 19:34:16 +0100 Subject: note that the timer queue is not supported on ARMv6-M --- ci/script.sh | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'ci') diff --git a/ci/script.sh b/ci/script.sh index 20394d5..0244c58 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -12,11 +12,17 @@ main() { esac cargo check --target $T - cargo check --features timer-queue --target $T + if [ $TARGET != thumbv6m-none-eabi ]; then + cargo check --features timer-queue --target $T + fi - if [ $TRAVIS_RUST_VERSION = beta ]; then + if [ $TRAVIS_RUST_VERSION != nightly ]; then rm -f .cargo/config - cargo doc --features timer-queue + if [ $TARGET != thumbv6m-none-eabi ]; then + cargo doc --features timer-queue + else + cargo doc + fi ( cd book && mdbook build ) local td=$(mktemp -d) @@ -33,7 +39,9 @@ main() { fi cargo check --target $T --examples - cargo check --features timer-queue --target $T --examples + if [ $TARGET != thumbv6m-none-eabi ]; then + cargo check --features timer-queue --target $T --examples + fi # run-pass tests case $T in @@ -76,11 +84,13 @@ main() { diff -u ci/expected/$ex.run - fi - cargo run --features timer-queue --example $ex --target $T | \ - diff -u ci/expected/$ex.run - + if [ $TARGET != thumbv6m-none-eabi ]; then + cargo run --features timer-queue --example $ex --target $T | \ + diff -u ci/expected/$ex.run - - cargo run --features timer-queue --example $ex --target $T --release | \ - diff -u ci/expected/$ex.run - + cargo run --features timer-queue --example $ex --target $T --release | \ + diff -u ci/expected/$ex.run - + fi done esac } -- cgit v1.2.3