fix(.travis.yml): (try to fix) random build failures at travis

At https://bitcointalk.org/index.php?topic=304389.0, people suggest
that the failure

    g++-4.8: internal compiler error: Killed (program cc1plus)

usually happens when the system does not have enough free memory.
A possible workaround is to disable parallel build, and compile file by
file. I added the option `-j1` to Ninja.
This commit is contained in:
Leonardo de Moura 2014-09-26 09:05:30 -07:00
parent 480bc639ea
commit f49a610995

View file

@ -247,7 +247,7 @@ script:
sed -i "s/^Site:.*/Site:$SITE/" $CONFIG_FILE;
sed -i "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE;
if [[ $MEMCHECK == TRUE ]]; then
ninja;
ninja -j1;
else
ctest -D ExperimentalConfigure;
sed -i "s/^Site:.*/Site:$SITE/" $CONFIG_FILE;
@ -262,7 +262,7 @@ after_script:
- cd build
- if [[ $REPO == BLESSED && $TESTCOV == ON ]]; then
ctest -D ExperimentalCoverage;
ninja cov;
ninja -j1 cov;
npm install coveralls --save;
cat coverage.info.cleaned | ./node_modules/coveralls/bin/coveralls.js;
fi