Skip to content

Commit 942e420

Browse files
committed
Update travis-build.sh
to execute snapshot commits in the underline GORM implementations such as: hibernate5
1 parent 31ddbb4 commit 942e420

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

travis-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ else
1313
./gradlew --no-daemon --refresh-dependencies check || EXIT_STATUS=$?
1414
if [[ $EXIT_STATUS -eq 0 && $TRAVIS_PULL_REQUEST == 'false' ]]; then
1515
echo "Travis Branch $TRAVIS_BRANCH"
16-
if ([[ -n $TRAVIS_TAG ]] || [[ $TRAVIS_BRANCH == 'master' ]] && [[ "${TRAVIS_JDK_VERSION}" != "openjdk11" ]]); then
16+
if ([[ -n $TRAVIS_TAG ]] || [[ $TRAVIS_BRANCH =~ ^master|[7]\..\.x$ ]] ]] && [[ "${TRAVIS_JDK_VERSION}" != "openjdk11" ]]); then
1717
./travis-publish.sh || EXIT_STATUS=$?
1818
fi
1919
fi

travis-publish.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
3131
echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
3232

3333
echo "Triggering Hibernate 5 build"
34-
git clone -b 7.0.x https://${GH_TOKEN}@github.com/grails/gorm-hibernate5.git gorm-hibernate5
34+
git clone -b $TRAVIS_BRANCH https://${GH_TOKEN}@github.com/grails/gorm-hibernate5.git gorm-hibernate5
3535
cd gorm-hibernate5
3636
echo "$(date)" > .snapshot
3737
git add .snapshot
@@ -40,7 +40,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
4040
cd ..
4141

4242
echo "Triggering Neo4j build"
43-
git clone -b 7.0.x https://${GH_TOKEN}@github.com/grails/gorm-neo4j.git gorm-neo4j
43+
git clone -b $TRAVIS_BRANCH https://${GH_TOKEN}@github.com/grails/gorm-neo4j.git gorm-neo4j
4444
cd gorm-neo4j
4545
echo "$(date)" > .snapshot
4646
git add .snapshot
@@ -49,7 +49,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
4949
cd ..
5050

5151
echo "Triggering MongoDB build"
52-
git clone -b 7.0.x https://${GH_TOKEN}@github.com/grails/gorm-mongodb.git gorm-mongodb
52+
git clone -b $TRAVIS_BRANCH https://${GH_TOKEN}@github.com/grails/gorm-mongodb.git gorm-mongodb
5353
cd gorm-mongodb
5454
echo "$(date)" > .snapshot
5555
git add .snapshot

0 commit comments

Comments
 (0)