Files
rust/library/compiler-builtins/libm/ci/script.sh

26 lines
500 B
Bash
Raw Normal View History

2018-07-12 00:44:28 -05:00
set -euxo pipefail
main() {
2018-07-13 22:10:08 -05:00
if [ $TARGET = cargo-fmt ]; then
cargo fmt -- --check
return
fi
2018-07-12 20:19:42 -05:00
# quick check
cargo check
# check that we can source import libm into compiler-builtins
cargo check --package cb
# generate tests
2018-07-12 00:44:28 -05:00
cargo run --package test-generator --target x86_64-unknown-linux-musl
2018-07-12 20:19:42 -05:00
# run tests
2018-07-12 00:44:28 -05:00
cross test --target $TARGET --release
# TODO need to fix overflow issues (cf. issue #4)
# cross test --target $TARGET
2018-07-12 00:44:28 -05:00
}
main