Skip to content

Commit 0348b55

Browse files
Merge pull request #1781 from craigcomstock/fix-315x-travis-jobs/master
Changed travis release jobs to use release tag of core matching packages installed
2 parents 5cfb768 + e656f01 commit 0348b55

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ script:
8989
fi;
9090
export IS_PRERELEASE
9191
- cd $TRAVIS_BUILD_DIR/..
92-
- git clone --depth=1 --branch $CF_VERSION https://github.com/cfengine/core
92+
- export RELEASE_TAG=$(/var/cfengine/bin/cf-agent --version | awk '{print $3}')
93+
- export BRANCH="$RELEASE_TAG"
94+
- if [ "$CF_VERSION" = "master" ]; then
95+
export BRANCH="master";
96+
fi
97+
- git clone --depth=1 --branch $BRANCH https://github.com/cfengine/core
9398
- chmod -R go-w .
9499
- cp core/tests/acceptance/*.cf.sub masterfiles/tests/acceptance/
95100
- umask 077

0 commit comments

Comments
 (0)