From d2f4972703fc95e20251796665feb00c768862d4 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 3 Nov 2018 18:46:26 +0000 Subject: [PATCH] Fix windows tagged builds The windows tagged builds currently fail some tests since the winpty-agent.exe is inside the release directory instead of the debug directory with tagged builds. --- ci/script.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index 6ab9e11..4dfc432 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -20,8 +20,13 @@ cargo test -p font || error=true # Test the winpty subcrate if [ "$TRAVIS_OS_NAME" == "windows" ]; then - cp ./target/debug/winpty-agent.exe ./target/debug/deps && \ - cargo test -p winpty || error=true + 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