summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuaki Sukegawa <nsukeg@gmail.com>2015-08-23 18:35:15 +0900
committerRoger Meier <roger@apache.org>2015-09-21 23:48:09 +0200
commit2a640c4ca2e577d05b1e592b12402c915e644452 (patch)
tree7e7680baca41c5be72edcfdabe28f092bc9f7331
parent840f3ef649053ad0c971afd5558ab45a39b6d11d (diff)
downloadthrift-2a640c4ca2e577d05b1e592b12402c915e644452.tar.gz
THRIFT-3303 Disable concurrent cabal jobs on Travis to avoid GHC crash
This closes #592
-rw-r--r--.travis.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 263531623..587d79597 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -37,6 +37,10 @@ before_install:
- if [ "$ALL_DEPS" != "no" ] ; then sh build/travis/installDependencies.sh 1> /dev/null ; fi
- if [ "$ALL_DEPS" != "no" ] ; then export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH ; fi
- if [ "$ALL_DEPS" != "no" ] ; then cabal update ; fi
+ # Disabling any cabal concurrent jobs to workaround GHC crashes due to out of memory.
+ # We can safely remove this to speed up cabal install, once Travis infrastructure is upgraded.
+ - if [ "$ALL_DEPS" != "no" ] ; then sed -i 's/^\s*jobs\s*:\s*\$ncpus\s*$/jobs:1/g' $HOME/.cabal/config && cat $HOME/.cabal/config | grep jobs ; fi
+
script:
- if [ "x$CMAKE_CONFIG" != "xnone" ] ; then mkdir cmake_build && cd cmake_build && cmake -GNinja -DQT_MOC_EXECUTABLE="moq-qt5" $CMAKE_CONFIG $TRAVIS_BUILD_DIR ; fi