Updated the travis deploy strategy

canary
WolverinDEV 2020-04-09 17:51:24 +02:00
parent 914ed0a39f
commit 4df4b8def6
1 changed files with 12 additions and 8 deletions

View File

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