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.
This commit is contained in:
Christian Duerr 2018-11-03 18:46:26 +00:00 committed by GitHub
parent 77816797e8
commit d2f4972703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -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