Skip to content

Commit 967dfc2

Browse files
committed
Don't run tests when publishing release, otherwise build times out
1 parent de7910f commit 967dfc2

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

travis-build.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@ echo "Project Version: '$grailsVersion'"
88

99
EXIT_STATUS=0
1010
./gradlew --stop
11-
echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
12-
echo "Executing tests"
13-
./gradlew --no-daemon --stacktrace test || EXIT_STATUS=$?
14-
echo "Done."
15-
if [[ $EXIT_STATUS == 0 ]]; then
16-
echo "Executing integration tests"
17-
./gradlew --no-daemon --stacktrace --info integrationTest < /dev/null || EXIT_STATUS=$?
18-
echo "Done."
11+
12+
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
13+
echo "Tagged Release Skipping Tests for Publish"
14+
else
15+
echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
16+
echo "Executing tests"
17+
./gradlew --no-daemon --stacktrace test || EXIT_STATUS=$?
18+
echo "Done."
19+
if [[ $EXIT_STATUS == 0 ]]; then
20+
echo "Executing integration tests"
21+
./gradlew --no-daemon --stacktrace --info integrationTest < /dev/null || EXIT_STATUS=$?
22+
echo "Done."
23+
fi
1924
fi
2025

26+
2127
if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0 ]]; then
2228

2329
echo "Publishing archives"

0 commit comments

Comments
 (0)