aboutsummaryrefslogtreecommitdiff
path: root/ci/script.sh
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-05-11 17:04:05 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-05-11 17:09:36 +0200
commit93abfac2a7e092d739e3e9b61bcd4f8614541428 (patch)
tree716486743e0fb0de56b5a9ed05e2af57e80a627d /ci/script.sh
parentb098b6af6aa48826aa1471ba3359a42d6d3e059a (diff)
downloadcortex-m-93abfac2a7e092d739e3e9b61bcd4f8614541428.tar.gz
cortex-m-93abfac2a7e092d739e3e9b61bcd4f8614541428.tar.zst
cortex-m-93abfac2a7e092d739e3e9b61bcd4f8614541428.zip
stable by default, remove exception module, add SCB.vect_active, ..
tweak Exception enum to match CMSIS names, document the parts of the API that require opting into `"inline-asm"`.
Diffstat (limited to 'ci/script.sh')
-rw-r--r--ci/script.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/ci/script.sh b/ci/script.sh
index 0cf0da0..e017b54 100644
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -1,15 +1,25 @@
set -euxo pipefail
main() {
+ cargo check --target $TARGET
+
+ if [ $TRAVIS_RUST_VERSION = nightly ]; then
+ cargo check --target $TARGET --features inline-asm
+ fi
+
case $TARGET in
thumbv7em-none-eabi*)
cargo check --target $TARGET --features cm7-r0p1
- cargo check --target $TARGET
+
+ if [ $TRAVIS_RUST_VERSION = nightly ]; then
+ cargo check --target $TARGET --features 'cm7-r0p1 inline-asm'
+ fi
;;
+
thumbv*-none-eabi*)
- cargo check --target $TARGET
;;
- *)
+
+ x86_64-unknown-linux-gnu)
cargo test --target $TARGET
;;
esac