2017-02-25 11:31:09 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
export PING_SLEEP=30s
|
|
|
|
export BUILD_OUTPUT=/tmp/build-site.out
|
|
|
|
export PING_PID_FILE=/tmp/build-site-ping.pid
|
|
|
|
|
2017-02-27 20:35:17 +01:00
|
|
|
source .travis/background-job-funcs.sh
|
2017-02-25 11:31:09 +01:00
|
|
|
|
|
|
|
# Run the build, redirect output into the file
|
2017-05-05 11:17:25 +02:00
|
|
|
./mvnw site site:stage -Psite -B -V >> $BUILD_OUTPUT 2>&1
|
2017-02-25 11:31:09 +01:00
|
|
|
|
|
|
|
# The build finished without returning an error so dump a tail of the output
|
|
|
|
dump_output
|
|
|
|
|
|
|
|
# nicely terminate the ping output loop
|
|
|
|
kill_ping
|
|
|
|
|