git.iko.soy/typeable/pandoc
on master help sign in
Added JOPTS to travis.

This way we can set -j2 only for GHC > 7.4.

commitfa76156d24d507151dec405dbe4a47c5ddd4efa6 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 25 Apr 2015, 12:57 (11 years ago) parentcfd6954
1 file changed+7−7
.travis.yml+7−7
.travis.yml+7−7
@@ -6,15 +6,15 @@ sudo: false
66# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
77matrix:
88 include:
9− - env: CABALVER=1.16 GHCVER=7.4.2 GHCOPTS="-Werror"
9+ - env: CABALVER=1.16 GHCVER=7.4.2 GHCOPTS="-Werror" JOPTS=""
1010 addons: {apt: {packages: [cabal-install-1.16, ghc-7.4.2], sources: [hvr-ghc]}}
11− - env: CABALVER=1.18 GHCVER=7.6.3 GHCOPTS="-Werror"
11+ - env: CABALVER=1.18 GHCVER=7.6.3 GHCOPTS="-Werror" JOPTS="-j2"
1212 addons: {apt: {packages: [cabal-install-1.18, ghc-7.6.3], sources: [hvr-ghc]}}
13− - env: CABALVER=1.18 GHCVER=7.8.4 GHCOPTS="-Werror"
13+ - env: CABALVER=1.18 GHCVER=7.8.4 GHCOPTS="-Werror" JOPTS="-j2"
1414 addons: {apt: {packages: [cabal-install-1.18, ghc-7.8.4], sources: [hvr-ghc]}}
15− - env: CABALVER=1.22 GHCVER=7.10.1 GHCOPTS=""
15+ - env: CABALVER=1.22 GHCVER=7.10.1 GHCOPTS="" JOPTS="-j2"
1616 addons: {apt: {packages: [cabal-install-1.22, ghc-7.10.1],sources: [hvr-ghc]}}
17−# - env: CABALVER=head GHCVER=head GHCOPTS="-Werror"
17+# - env: CABALVER=head GHCVER=head GHCOPTS="-Werror" JOPTS="-j2"
1818# addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
1919
2020# Note: the distinction between `before_install` and `install` is not important.
@@ -24,11 +24,11 @@ before_install:
2424install:
2525 - cabal-$CABALVER update
2626# - git clone https://github.com/jgm/pandoc-types && cd pandoc-types && cabal-1.18 install && cd ..
27− - cabal-$CABALVER install -j2 --only-dependencies --enable-tests
27+ - cabal-$CABALVER install $JOPTS --only-dependencies --enable-tests
2828
2929# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
3030script:
3131 - cabal-$CABALVER configure --enable-tests -v2 # -v2 provides useful information for debugging
32− - cabal-$CABALVER build -j2 --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)
32+ - cabal-$CABALVER build $JOPTS --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)
3333 - cabal-$CABALVER test
3434 - cabal-$CABALVER check