mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Run tests only once on FreeBSD due to Travis timeout
This commit is contained in:
parent
bd47ae56ef
commit
8f19c926c0
|
@ -8,6 +8,10 @@ NPROC=`nproc`
|
||||||
CURDIR=/root
|
CURDIR=/root
|
||||||
RUN_TESTS=true
|
RUN_TESTS=true
|
||||||
MAKE=gmake
|
MAKE=gmake
|
||||||
|
# A lot of tests fail and run for the full 2 minutes allowed, resulting in
|
||||||
|
# Travis build timing out, so we restrict it to just 1 test run until enough
|
||||||
|
# tests are fixed so that they succeed and don't run the full 2 minutes.
|
||||||
|
MAX_TEST_RETRIES=1
|
||||||
|
|
||||||
SCREEN_SESSION=freebsd
|
SCREEN_SESSION=freebsd
|
||||||
SSH_PORT=10022
|
SSH_PORT=10022
|
||||||
|
|
|
@ -38,5 +38,5 @@ export CTEST_OUTPUT_ON_FAILURE=1
|
||||||
|
|
||||||
RUN $MAKE -C$BUILD_DIR -j$NPROC -k install
|
RUN $MAKE -C$BUILD_DIR -j$NPROC -k install
|
||||||
if $RUN_TESTS; then
|
if $RUN_TESTS; then
|
||||||
TESTS $MAX_TEST_RETRIES make -C$BUILD_DIR -j$NPROC test ARGS="--rerun-failed"
|
TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="--rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user