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
|
|
|
|
|
2017-12-23 21:34:24 +01:00
|
|
|
case $TARGET in
|
|
|
|
thumbv7em-none-eabi*)
|
2018-04-08 18:23:27 +02:00
|
|
|
cargo check --target $TARGET --features cm7-r0p1
|
|
|
|
cargo check --target $TARGET --features cm7-r0p1 --examples
|
2017-12-23 21:34:24 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2018-04-08 18:23:27 +02:00
|
|
|
cargo check --target $TARGET
|
|
|
|
cargo check --target $TARGET --examples
|
2017-04-12 06:12:06 +02:00
|
|
|
}
|
|
|
|
|
2018-08-27 14:45:43 +02:00
|
|
|
if [ $TRAVIS_BRANCH != master ]; then
|
|
|
|
main
|
|
|
|
fi
|