rtic/ci/script.sh
2017-07-27 15:02:25 -05:00

14 lines
235 B
Bash

set -euxo pipefail
main() {
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
cargo build
cargo test --tests
return
fi
xargo build --target $TARGET
xargo test --target $TARGET --examples
}
main