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
|
2018-05-07 17:46:26 +02:00
|
|
|
cargo build --target $TARGET
|
|
|
|
cargo test --test cfail --target $TARGET
|
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=(
|
2018-05-14 21:22:50 +02:00
|
|
|
schedule-now
|
2018-05-17 23:28:58 +02:00
|
|
|
minimal
|
|
|
|
idle
|
2018-05-14 21:22:50 +02:00
|
|
|
event-task
|
2018-05-04 05:39:06 +02:00
|
|
|
)
|
|
|
|
|
2018-05-14 21:22:50 +02:00
|
|
|
# without timer-queue
|
|
|
|
cargo check --target $TARGET
|
|
|
|
|
|
|
|
for ex in ${examples[@]}; do
|
|
|
|
cargo build --target $TARGET --example $ex
|
|
|
|
cargo build --target $TARGET --example $ex --release
|
|
|
|
done
|
|
|
|
|
|
|
|
# with timer-queue
|
|
|
|
cargo check --features timer-queue --target $TARGET
|
|
|
|
|
|
|
|
cargo build --features timer-queue --target $TARGET --examples
|
|
|
|
cargo build --features timer-queue --target $TARGET --examples --release
|
|
|
|
|
|
|
|
# test again but with the cm7-r0p1 feature enabled
|
2017-12-23 21:34:24 +01:00
|
|
|
case $TARGET in
|
|
|
|
thumbv7em-none-eabi*)
|
2018-05-14 21:22:50 +02:00
|
|
|
# without timer-queue
|
2018-04-08 18:23:27 +02:00
|
|
|
cargo check --target $TARGET --features cm7-r0p1
|
2018-05-14 21:22:50 +02:00
|
|
|
|
2018-05-04 05:39:06 +02:00
|
|
|
for ex in ${examples[@]}; do
|
2018-05-14 21:22:50 +02:00
|
|
|
cargo build --target $TARGET --features cm7-r0p1 --example $ex
|
|
|
|
cargo build --target $TARGET --features cm7-r0p1 --example $ex --release
|
2018-05-04 05:39:06 +02:00
|
|
|
done
|
|
|
|
|
2018-05-14 21:22:50 +02:00
|
|
|
# with timer-queue
|
|
|
|
cargo check --target $TARGET --features "cm7-r0p1 timer-queue"
|
2017-12-23 21:34:24 +01:00
|
|
|
|
2018-05-14 21:22:50 +02:00
|
|
|
cargo build --target $TARGET --features "cm7-r0p1 timer-queue" --examples
|
|
|
|
cargo build --target $TARGET --features "cm7-r0p1 timer-queue" --examples --release
|
|
|
|
;;
|
|
|
|
esac
|
2017-04-12 06:12:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
main
|