rtic/ci/script.sh

15 lines
235 B
Bash
Raw Normal View History

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
cargo test --tests
2017-04-12 06:12:06 +02:00
return
fi
2017-07-21 06:03:45 +02:00
xargo build --target $TARGET
xargo test --target $TARGET --examples
2017-04-12 06:12:06 +02:00
}
main