mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
ci: test the nightly feature
This commit is contained in:
parent
88078e7770
commit
c8df71adf0
1 changed files with 17 additions and 12 deletions
29
ci/script.sh
29
ci/script.sh
|
@ -33,6 +33,11 @@ arm_example() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
local T=$TARGET
|
local T=$TARGET
|
||||||
|
local nightly=""
|
||||||
|
|
||||||
|
if [ $TRAVIS_RUST_VERSION = nightly ]; then
|
||||||
|
nightly="nightly"
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p ci/builds
|
mkdir -p ci/builds
|
||||||
|
|
||||||
|
@ -41,12 +46,12 @@ main() {
|
||||||
case $TRAVIS_RUST_VERSION in
|
case $TRAVIS_RUST_VERSION in
|
||||||
nightly*)
|
nightly*)
|
||||||
# TODO how to run a subset of these tests when timer-queue is disabled?
|
# TODO how to run a subset of these tests when timer-queue is disabled?
|
||||||
cargo test --features timer-queue --test compiletest --target $T
|
cargo test --features "$nightly,timer-queue" --test compiletest --target $T
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cargo check --target $T
|
cargo check --target $T
|
||||||
if [ $TARGET != thumbv6m-none-eabi ]; then
|
if [ $TARGET != thumbv6m-none-eabi ]; then
|
||||||
cargo check --features timer-queue --target $T
|
cargo check --features "$nightly,timer-queue" --target $T
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $TRAVIS_RUST_VERSION != nightly ]; then
|
if [ $TRAVIS_RUST_VERSION != nightly ]; then
|
||||||
|
@ -76,9 +81,9 @@ main() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cargo check --target $T --examples
|
cargo check --features "$nightly" --target $T --examples
|
||||||
if [ $TARGET != thumbv6m-none-eabi ]; then
|
if [ $TARGET != thumbv6m-none-eabi ]; then
|
||||||
cargo check --features timer-queue --target $T --examples
|
cargo check --features "$nightly,timer-queue" --target $T --examples
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run-pass tests
|
# run-pass tests
|
||||||
|
@ -115,13 +120,13 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $ex != types ]; then
|
if [ $ex != types ]; then
|
||||||
arm_example "run" $ex "debug" "" "1"
|
arm_example "run" $ex "debug" "$nightly" "1"
|
||||||
arm_example "run" $ex "release" "" "1"
|
arm_example "run" $ex "release" "$nightly" "1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $TARGET != thumbv6m-none-eabi ]; then
|
if [ $TARGET != thumbv6m-none-eabi ]; then
|
||||||
arm_example "run" $ex "debug" "timer-queue" "1"
|
arm_example "run" $ex "debug" "$nightly,timer-queue" "1"
|
||||||
arm_example "run" $ex "release" "timer-queue" "1"
|
arm_example "run" $ex "release" "$nightly,timer-queue" "1"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -139,16 +144,16 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $ex != types ]; then
|
if [ $ex != types ]; then
|
||||||
arm_example "build" $ex "debug" "" "2"
|
arm_example "build" $ex "debug" "$nightly" "2"
|
||||||
cmp ci/builds/${ex}_debug_1.hex ci/builds/${ex}_debug_2.hex
|
cmp ci/builds/${ex}_debug_1.hex ci/builds/${ex}_debug_2.hex
|
||||||
arm_example "build" $ex "release" "" "2"
|
arm_example "build" $ex "release" "$nightly" "2"
|
||||||
cmp ci/builds/${ex}_release_1.hex ci/builds/${ex}_release_2.hex
|
cmp ci/builds/${ex}_release_1.hex ci/builds/${ex}_release_2.hex
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $TARGET != thumbv6m-none-eabi ]; then
|
if [ $TARGET != thumbv6m-none-eabi ]; then
|
||||||
arm_example "build" $ex "debug" "timer-queue" "2"
|
arm_example "build" $ex "debug" "$nightly,timer-queue" "2"
|
||||||
cmp ci/builds/${ex}_timer-queue_debug_1.hex ci/builds/${ex}_timer-queue_debug_2.hex
|
cmp ci/builds/${ex}_timer-queue_debug_1.hex ci/builds/${ex}_timer-queue_debug_2.hex
|
||||||
arm_example "build" $ex "release" "timer-queue" "2"
|
arm_example "build" $ex "release" "$nightly,timer-queue" "2"
|
||||||
cmp ci/builds/${ex}_timer-queue_release_1.hex ci/builds/${ex}_timer-queue_release_2.hex
|
cmp ci/builds/${ex}_timer-queue_release_1.hex ci/builds/${ex}_timer-queue_release_2.hex
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue