make cargo fmt in ci/script.sh optional

This commit is contained in:
Jorge Aparicio
2018-07-13 22:15:21 -05:00
parent 392a0fb886
commit f966201d4c
+4 -2
View File
@@ -15,8 +15,10 @@ main() {
# generate tests
cargo run --package test-generator --target x86_64-unknown-linux-musl
# nicer syntax error messages (if any)
cargo fmt
if cargo fmt --version >/dev/null 2>&1; then
# nicer syntax error messages (if any)
cargo fmt
fi
# run tests
cross test --target $TARGET --release