From 4df4b8def6a2383692a752fb5a3e804c6e070765 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 9 Apr 2020 17:51:24 +0200 Subject: [PATCH] Updated the travis deploy strategy --- .travis.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 99894b06..f3915401 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,16 +17,20 @@ before_install: stages: - compile # - test We've no tested defined yet - - name: deploy-develop - if: branch = develop - - name: deploy-release - if: branch = master jobs: include: - stage: compile script: "./scripts/travis.sh --enable-release --enable-debug || travis_terminate 1;" - - stage: deploy-develop - script: "./scripts/travis_deploy_dev_server.sh || travis_terminate 1;" - - stage: deploy-release - script: "./scripts/travis_deploy_github.sh || travis_terminate 1;" \ No newline at end of file + +deploy: + - provider: script + script: "./scripts/travis_deploy_dev_server.sh || travis_terminate 1;" + skip_cleanup: true + on: + branch: develop + - provider: script + skip_cleanup: true + script: "./scripts/travis_deploy_github.sh || travis_terminate 1;" + on: + branch: master \ No newline at end of file