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

23 lines
469 B
Bash
Raw Normal View History

#!/bin/bash
# Run clippy checks
if [ "$CLIPPY" == "true" ]; then
cargo clippy --all-targets
exit
fi
2019-03-30 12:48:36 -04:00
# Run clippy rustfmt
if [ "$RUSTFMT" == "true" ]; then
cargo fmt -- --check
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