diff --git a/.travis.yml b/.travis.yml index f3915401..0a0184d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,12 +25,12 @@ jobs: deploy: - provider: script - script: "./scripts/travis_deploy_dev_server.sh || travis_terminate 1;" - skip_cleanup: true + script: "bash scripts/travis_deploy_dev_server.sh" + cleanup: false on: branch: develop - provider: script - skip_cleanup: true - script: "./scripts/travis_deploy_github.sh || travis_terminate 1;" + cleanup: false + script: "bash scripts/travis_deploy_github.sh" on: branch: master \ No newline at end of file diff --git a/scripts/travis_deploy_dev_server.sh b/scripts/travis_deploy_dev_server.sh index 2ede566b..e93d21e7 100644 --- a/scripts/travis_deploy_dev_server.sh +++ b/scripts/travis_deploy_dev_server.sh @@ -14,13 +14,13 @@ chmod 600 /tmp/sftp_key } cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; } -file=$(find . -maxdepth 1 -name "*.zip" -print) +file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "*.zip" -print) [[ $(echo "$file" | wc -l) -ne 1 ]] && { echo "Invalid release file count (Expected 1 but got $(echo "$file" | wc -l))" exit 1 } [[ ! -e "$file" ]] && { - echo "File does not exists" + echo "File ($file) does not exists" exit 1 } #TeaSpeak-Travis-Web