From 383c83729e608c3ce815d7d19f44fc5b729092c5 Mon Sep 17 00:00:00 2001 From: Andrew Woloszyn Date: Tue, 19 Jan 2016 16:13:45 -0500 Subject: [PATCH] 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. --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9e3bc5d..67f0486 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 -- 2.7.4