@@ -17,24 +17,21 @@ install:
1717 - cabal --version
1818 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
1919 - travis_retry cabal update
20+ # Run sequentially
21+ # Travis container infrastructure seems to expose all host CPUs (16?), thus
22+ # cabal and ghc tries to use them all. Which is bad idea on a shared box.
23+ # See also: https://ghc.haskell.org/trac/ghc/ticket/9221
24+ - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
2025 - mkdir -p sandboxes/$GHCVER/${STACKAGE:-none}
2126 - cabal sandbox init --sandbox sandboxes/$GHCVER/${STACKAGE:-none}
2227 # Download stackage cabal.config
2328 # Not sure whether filtering out purescript is necessary
2429 - if [ -n "$STACKAGE" ]; then curl http://www.stackage.org/$STACKAGE/cabal.config | grep -v purescript > cabal.config; fi
25− # Run with limited concurrency
26− # Travis container infrastructure seems to expose all host CPUs (16?), thus
27− # cabal and ghc tries to use them all. Which is bad idea on a shared box.
28− # See also: https://ghc.haskell.org/trac/ghc/ticket/9221
29− #
30− # We probably want to be running with larger heap sizes when there are lots
31− # of cores, to counteract the synchronization overhead of stop-the-world GC
32− # across many cores. e.g. +RTS -A32m at least.
33− - cabal install --only-dependencies --enable-tests -j2 --ghc-options='+RTS -A32m -RTS'
34− - cabal install hpc-coveralls -j2
30+ - cabal install --only-dependencies --enable-tests
31+ - cabal install hpc-coveralls
3532script:
3633 - ./travis/configure.sh
37− - cabal build -j2 --ghc-options='+RTS -A32m -RTS'
34+ - cabal build
3835 - cabal test
3936 - ./travis/test-install.sh
4037after_script: