This commit is contained in:
Jorge Aparicio 2018-05-14 21:22:50 +02:00
parent 09c2e99989
commit d665ea95b3
66 changed files with 2556 additions and 709 deletions

View file

@ -9,29 +9,43 @@ main() {
# examples that don't require the timer-queue feature
local examples=(
async
schedule-now
empty
interrupt
event-task
)
# 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
case $TARGET in
thumbv7em-none-eabi*)
# without timer-queue
cargo check --target $TARGET --features cm7-r0p1
for ex in ${examples[@]}; do
cargo check --target $TARGET --features cm7-r0p1 --example $ex
cargo build --target $TARGET --features cm7-r0p1 --example $ex
cargo build --target $TARGET --features cm7-r0p1 --example $ex --release
done
cargo check timer-queue --target $TARGET --features "cm7-r0p1 timer-queue"
cargo check --target $TARGET --features "cm7-r0p1 timer-queue" --examples
;;
esac
# with timer-queue
cargo check --target $TARGET --features "cm7-r0p1 timer-queue"
cargo check --target $TARGET
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
cargo build --target $TARGET --features "cm7-r0p1 timer-queue" --examples
cargo build --target $TARGET --features "cm7-r0p1 timer-queue" --examples --release
;;
esac
}
main