1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00
alacritty/ci/script.sh
Kirill Chibisov e4e0218ede Run rustfmt on sr.ht
This should provide more clear feedback whether rustfmt
job is failed or not.
2020-06-23 11:13:14 +00:00

16 lines
376 B
Bash
Executable file

#!/bin/bash
# Run clippy checks
if [ "$CLIPPY" == "true" ]; then
cargo clippy --all-targets
exit
fi
# Run test in release mode if a tag is present, to produce an optimized binary
if [ -n "$TRAVIS_TAG" ]; then
# Build separately so we generate an 'alacritty' binary without -HASH appended
cargo build --release
cargo test --release
else
cargo test
fi