mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
23 lines
490 B
Bash
23 lines
490 B
Bash
set -euxo pipefail
|
|
|
|
main() {
|
|
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
|
|
cargo build
|
|
cargo test --test cfail
|
|
return
|
|
fi
|
|
|
|
case $TARGET in
|
|
thumbv7em-none-eabi*)
|
|
cargo check --target $TARGET --features cm7-r0p1
|
|
cargo check --target $TARGET --features cm7-r0p1 --examples
|
|
;;
|
|
esac
|
|
|
|
cargo check --target $TARGET
|
|
cargo check --target $TARGET --examples
|
|
}
|
|
|
|
if [ $TRAVIS_BRANCH != master ]; then
|
|
main
|
|
fi
|