rtic/ci/script.sh

38 lines
1,008 B
Bash
Raw Normal View History

2017-07-27 22:02:25 +02:00
set -euxo pipefail
2017-04-12 06:12:06 +02:00
main() {
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
2017-07-21 06:03:45 +02:00
cargo build
2017-11-22 09:40:36 +01:00
cargo test --test cfail
2017-04-12 06:12:06 +02:00
return
fi
2018-05-04 05:39:06 +02:00
# examples that don't require the timer-queue feature
local examples=(
async
empty
interrupt
)
case $TARGET in
thumbv7em-none-eabi*)
cargo check --target $TARGET --features cm7-r0p1
2018-05-04 05:39:06 +02:00
for ex in ${examples[@]}; do
cargo check --target $TARGET --features cm7-r0p1 --example $ex
done
cargo check timer-queue --target $TARGET --features "cm7-r0p1 timer-queue"
cargo check --target $TARGET --features "cm7-r0p1 timer-queue" --examples
;;
esac
cargo check --target $TARGET
2018-05-04 05:39:06 +02:00
for ex in ${examples[@]}; do
cargo check --target $TARGET --features cm7-r0p1 --example $ex
done
cargo check --features timer-queue --target $TARGET
cargo check --features timer-queue --target $TARGET --examples
2017-04-12 06:12:06 +02:00
}
main