git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1342 from phadej/faster-travis-builds

Tune GHC parameters

commit634266f72f11c004544404dd1a7a13429b8989c0 authorPhil Freeman <paf31@cantab.net> dateSat 8 Aug 2015, 11:11 (11 years ago) parent8510298bc84436
2 files changed+12−4
.travis.yml+11−3 travis/test-install.sh+1−1
.travis.yml+11−3
@@ -15,11 +15,19 @@ install:
1515 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
1616 - travis_retry cabal update
1717 - cabal sandbox init
18− - cabal install --only-dependencies --enable-tests
19− - cabal install hpc-coveralls
18+ # Run with limited concurrency
19+ # Travis container infrastructure seems to expose all host CPUs (16?), thus
20+ # cabal and ghc tries to use them all. Which is bad idea on a shared box.
21+ # See also: https://ghc.haskell.org/trac/ghc/ticket/9221
22+ #
23+ # We probably want to be running with larger heap sizes when there are lots
24+ # of cores, to counteract the synchronization overhead of stop-the-world GC
25+ # across many cores. e.g. +RTS -A32m at least.
26+ - cabal install --only-dependencies --enable-tests -j2 --ghc-options='+RTS -A32m -RTS'
27+ - cabal install hpc-coveralls -j2
2028script:
2129 - ./travis/configure.sh
22− - cabal build
30+ - cabal build -j2 --ghc-options='+RTS -A32m -RTS'
2331 - cabal test
2432 - ./travis/test-install.sh
2533after_script:
travis/test-install.sh+1−1
@@ -8,5 +8,5 @@ then
88 mkdir -p ../install-test
99 cd ../install-test
1010 cabal sandbox init
11− cabal install "$SRC_TGZ"
11+ cabal install -j2 --ghc-options='+RTS -A32m -RTS' "$SRC_TGZ"
1212fi