We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5cfb768 + e656f01 commit 0348b55Copy full SHA for 0348b55
1 file changed
.travis.yml
@@ -89,7 +89,12 @@ script:
89
fi;
90
export IS_PRERELEASE
91
- cd $TRAVIS_BUILD_DIR/..
92
-- git clone --depth=1 --branch $CF_VERSION https://github.com/cfengine/core
+- 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
98
- chmod -R go-w .
99
- cp core/tests/acceptance/*.cf.sub masterfiles/tests/acceptance/
100
- umask 077
0 commit comments