Travis CI: Fix out-of-memory during cppcheck build
authorIvan Maidanski <ivmai@mail.ru>
Fri, 21 Jun 2019 21:59:36 +0000 (00:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 21 Jun 2019 21:59:36 +0000 (00:59 +0300)
Number of make parallel jobs is reduced to 8 when building cppcheck.

.travis.yml

index 81c915ffe0af636e92c4e8cdd8cad5586a3f10b5..cda2fb59d5aa82cb21fa450f7db41613bb917cb4 100644 (file)
@@ -559,7 +559,7 @@ before_install:
     CPPCHECK_VER=master;
     git clone --depth=3 https://github.com/danmar/cppcheck.git
             ~/cppcheck -b $CPPCHECK_VER;
-    make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -D NDEBUG";
+    make --directory ~/cppcheck -j8 CXXFLAGS="-O3 -march=native -D NDEBUG";
   fi
 - if [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != ""
         || "$M4_VER" != "" ]]; then