Skip to content

Commit 1c2bcee

Browse files
committed
Only install git-flow and perform git checkout for release job
1 parent 1312dbb commit 1c2bcee

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ language: scala
88
# Ubuntu Trusty (https://docs.travis-ci.com/user/reference/trusty/)
99
dist: trusty
1010

11-
before_install:
12-
# git-flow AVH (https://github.com/petervanderdoes/gitflow-avh/wiki/Installing-on-Linux,-Unix,-etc.#user-content-manual-installation)
13-
- wget --no-check-certificate -q https://raw.githubusercontent.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh
14-
- sudo bash gitflow-installer.sh install stable
15-
16-
install:
17-
- git checkout -qf $TRAVIS_BRANCH
18-
1911
jobs:
2012
include:
2113
- name: test
@@ -33,6 +25,12 @@ jobs:
3325
# Extract release version from branch name
3426
- RELEASE_VERSION=`echo $TRAVIS_BRANCH | sed -r 's/^release\/(.*)$/\1/'`
3527
- GIT_MERGE_AUTOEDIT=no
28+
before_install:
29+
# git-flow AVH (https://github.com/petervanderdoes/gitflow-avh/wiki/Installing-on-Linux,-Unix,-etc.#user-content-manual-installation)
30+
- wget --no-check-certificate -q https://raw.githubusercontent.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh
31+
- sudo bash gitflow-installer.sh install stable
32+
install:
33+
- git checkout -qf $TRAVIS_BRANCH
3634
before_script: git remote set-url origin https://[email protected]/$TRAVIS_REPO_SLUG.git
3735
script: sbt "^ release release-version $RELEASE_VERSION with-defaults"
3836
# --message option is required to suppress editor prompt

0 commit comments

Comments
 (0)