From 31bece22fffca98a1dc9b23c3ef19815a065dc62 Mon Sep 17 00:00:00 2001 From: ggeop Date: Mon, 11 Oct 2021 22:38:06 +0300 Subject: [PATCH] Remove merge feature branch to develop --- .travis.yml | 9 ++++++--- bin/deploy/new_release_auto_tagging.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7b66feb..2f5f8a43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ python: 3.8 jobs: include: + - stage: test before_install: - sudo bash bin/deploy/install_system_dependencies.sh @@ -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 @@ -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 @@ -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 diff --git a/bin/deploy/new_release_auto_tagging.sh b/bin/deploy/new_release_auto_tagging.sh index f750f41e..4aca7adb 100644 --- a/bin/deploy/new_release_auto_tagging.sh +++ b/bin/deploy/new_release_auto_tagging.sh @@ -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" \ No newline at end of file