Skip to content

Commit e656f01

Browse files
committed
Changed travis release jobs to use release tag of core matching packages installed
Otherwise they can be out of sync, such as 3.15.x tests/acceptance/testall wanting cf-secret but 3.15.2 not having it. Ticket: none Changelog: none
1 parent 5cfb768 commit e656f01

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)