mirror of
https://github.com/alacritty/alacritty.git
synced 2025-02-17 15:57:08 -05:00

The crate containing the entry point is called alacritty, and the crate containing everything else is called alacritty_terminal.
22 lines
469 B
Bash
Executable file
22 lines
469 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Run clippy checks
|
|
if [ "$CLIPPY" == "true" ]; then
|
|
cargo clippy --all-targets
|
|
exit
|
|
fi
|
|
|
|
# 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
|