rtic/ci/script.sh
2017-07-23 20:59:35 -05:00

14 lines
224 B
Bash

set -ex
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