Skip to content

Commit 45d3f00

Browse files
Nick Pillitteriwilkinsona
authored andcommitted
Use 'travis_wait' to prevent Travis CI from aborting builds
Builds use the '-q' flag to suppress most output due to a limit of 4MB of logs on Travis CI. However, Travis will also abort builds that don't generate any output for 10 minutes. Thus we also use the 'travis_wait' function to make sure builds aren't aborted for up to 30 minutes. Fixes gh-6621 Closes gh-6623
1 parent ae6182a commit 45d3f00

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ services:
66
- redis
77
sudo: false
88
install: true
9-
before_script:
10-
- ./mvnw install -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true || true
11-
- ./mvnw install -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true
12-
script: ./mvnw install -q -nsu -Dmaven.test.redirectTestOutputToFile=true -P '!integration'
9+
before_script: travis_wait 30 ./mvnw install -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true
10+
script: ./mvnw install -q -nsu -Dmaven.test.redirectTestOutputToFile=true -P '!integration'

0 commit comments

Comments
 (0)