Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python: 3.8

jobs:
include:

- stage: test
before_install:
- sudo bash bin/deploy/install_system_dependencies.sh
Expand All @@ -15,6 +16,7 @@ jobs:
script:
# Run tests by using Travis virtual env (quick way, pip deps are cached)
- sudo bash bin/tests/run_tests_on_travis.sh

- stage: merge (develop --> master)
install:
- sudo bash setup.sh
Expand All @@ -25,6 +27,7 @@ jobs:
after_success:
- bash bin/deploy/new_release_auto_tagging.sh
- sudo bash bin/deploy/merge_develop_to_master.sh

- stage: deploy
install: skip
script: skip
Expand All @@ -40,11 +43,11 @@ jobs:

stages:
- name: test
if: NOT(branch==master)
if: branch!=master AND branch!=^untagged.*
- name: merge (develop --> master)
if: branch==develop AND (NOT(type==pull_request))
if: branch==develop AND type!=pull_request
- name: deploy
if: branch==master AND (NOT(type==pull_request))
if: branch==master AND type!=pull_request

notifications:
email: false
2 changes: 1 addition & 1 deletion bin/deploy/new_release_auto_tagging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
echo "Add tags to new release"
git config --global user.email "builds@travis-ci.com"
git config --global user.name "Travis CI"
export GIT_TAG=$TRAVIS_BRANCH-build_$TRAVIS_BUILD_NUMBER
export GIT_TAG=Release_v.$TRAVIS_BUILD_NUMBER
git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"