Repository: thrift Updated Branches: refs/heads/master 840f3ef64 -> 2a640c4ca
THRIFT-3303 Disable concurrent cabal jobs on Travis to avoid GHC crash This closes #592 Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/2a640c4c Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/2a640c4c Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/2a640c4c Branch: refs/heads/master Commit: 2a640c4ca2e577d05b1e592b12402c915e644452 Parents: 840f3ef Author: Nobuaki Sukegawa <[email protected]> Authored: Sun Aug 23 18:35:15 2015 +0900 Committer: Roger Meier <[email protected]> Committed: Mon Sep 21 23:48:09 2015 +0200 ---------------------------------------------------------------------- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/2a640c4c/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 2635316..587d795 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
