Since g++-4.9 has an ICE occasionally in travis add a retry.

Try to re-run the build with ninja -j 1 if the build fails,
this should reduce the number of build failures we see.
This commit is contained in:
Andrew Woloszyn 2016-01-19 16:13:45 -05:00
parent 2a790fbc6d
commit 383c83729e

View File

@ -52,7 +52,11 @@ before_script:
script:
- mkdir build && cd build
- cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
- ninja
# Sometimes g++-4.9 flakes with an ICE. This may be an OOM thing when
# expanding many templates.
# If we fail the build the first time, then try to continue in
# single-process mode.
- ninja || ninja -j 1
- ./UnitSPIRV --gtest_break_on_failure