From dbd8538762ef8968a493e1bf996e8693479ca783 Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Sun, 28 Apr 2019 06:24:58 -0700 Subject: Split alacritty into a separate crates The crate containing the entry point is called alacritty, and the crate containing everything else is called alacritty_terminal. --- ci/script.sh | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'ci/script.sh') diff --git a/ci/script.sh b/ci/script.sh index 21991415..87dc872f 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -1,8 +1,5 @@ #!/bin/bash -# Check if any command failed -error=false - # Run clippy checks if [ "$CLIPPY" == "true" ]; then cargo clippy --all-targets @@ -17,25 +14,9 @@ fi # Run test in release mode if a tag is present, to produce an optimized binary if [ -n "$TRAVIS_TAG" ]; then - cargo test --release || error=true + # Build separately so we generate an 'alacritty' binary without -HASH appended + cargo build --release + cargo test --release else - cargo test || error=true -fi - -# Test the font subcrate -cargo test -p font || error=true - -# Test the winpty subcrate -if [ "$TRAVIS_OS_NAME" == "windows" ]; then - if [ -n "$TRAVIS_TAG" ]; then - mkdir -p "./target/debug/deps" - cp "./target/release/winpty-agent.exe" "./target/debug/deps" - else - cp "./target/debug/winpty-agent.exe" "./target/debug/deps" - fi - cargo test -p winpty || error=true -fi - -if [ $error == "true" ]; then - exit 1 + cargo test fi -- cgit v1.2.3