2016-08-11 20:49:49 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-08-25 06:52:34 +08:00
|
|
|
CMAKE=cmake
|
2016-11-28 04:24:18 +08:00
|
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON"
|
2016-08-25 06:52:34 +08:00
|
|
|
NPROC=`nproc`
|
|
|
|
CURDIR=$PWD
|
2017-01-06 05:23:06 +08:00
|
|
|
RUN_TESTS=true
|
2016-08-11 20:49:49 +08:00
|
|
|
|
|
|
|
RUN() {
|
|
|
|
"$@"
|
|
|
|
}
|
2016-08-25 06:52:34 +08:00
|
|
|
|
|
|
|
TESTS() {
|
2017-01-19 08:31:19 +08:00
|
|
|
# Keep running tests until they eventually succeed or Travis times out after
|
|
|
|
# 50 minutes. This cuts down on the time lost when tests fail, because we no
|
|
|
|
# longer need to manually restart the build and wait for compilation.
|
|
|
|
"$@" || TESTS "$@"
|
2016-08-25 06:52:34 +08:00
|
|
|
}
|