Skip to content

Commit a0cd2f7

Browse files
committed
Repeat each test and randomize schedule on CI
Repeat each test 7 times and randomize test order on Travis-CI to help catch race conditions and other parallel programming bugs.
1 parent 02c6635 commit a0cd2f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ script:
142142
export PATH="$PATH:$HOME/bin"
143143
./install.sh --yes-to-all -i "$HOME/opt/opencoarrays" -j 4 -f "$HOME/bin/gfortran" -c "$HOME/bin/gcc" -C "$HOME/bin/g++"
144144
cd prerequisites/builds/opencoarrays/*
145-
../../../installations/cmake/*/bin/ctest --output-on-failure
145+
../../../installations/cmake/*/bin/ctest --output-on-failure --schedule-random --repeat-until-fail 7
146146
cd -
147147
else
148148
mkdir cmake-build
149149
cd cmake-build
150150
cmake -DCMAKE_INSTALL_PREFIX:PATH="$HOME/OpenCoarrays" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" ..
151151
make -j 4
152-
ctest --output-on-failure
152+
ctest --output-on-failure --schedule-random --repeat-until-fail 7
153153
make install
154154
cd ..
155155
fi

0 commit comments

Comments
 (0)