git.iko.soy/typeable/http-api-data
on master help sign in
Add --allow-newer to GHC 8.1.* job
b18aa5dOleg Grenrus
.travis.yml+5−4
@@ -36,6 +36,7 @@ matrix:
36 # env: TEST=--disable-tests BENCH=--disable-benchmarks
36 # env: TEST=--disable-tests BENCH=--disable-benchmarks
37 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.2], sources: [hvr-ghc]}}
37 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.2], sources: [hvr-ghc]}}
38 - compiler: "ghc-head"
38 - compiler: "ghc-head"
39+ env: CABALFLAGS="--allow-newer"
39 # env: TEST=--disable-tests BENCH=--disable-benchmarks
40 # env: TEST=--disable-tests BENCH=--disable-benchmarks
40 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-head], sources: [hvr-ghc]}}
41 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-head], sources: [hvr-ghc]}}
41
42
@@ -66,8 +67,8 @@ install:
66 - rm -fv cabal.project.local
67 - rm -fv cabal.project.local
67 - "echo 'packages: .' > cabal.project"
68 - "echo 'packages: .' > cabal.project"
68 - rm -f cabal.project.freeze
69 - rm -f cabal.project.freeze
69− - cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2
70+ - cabal new-build ${CABALFLAGS} -w ${HC} ${TEST} ${BENCH} --dep -j2
70− - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2
71+ - cabal new-build ${CABALFLAGS} -w ${HC} --disable-tests --disable-benchmarks --dep -j2
71
72
72# Here starts the actual work to be performed for the package under test;
73# Here starts the actual work to be performed for the package under test;
73# any command which exits with a non-zero exit code causes the build to fail.
74# any command which exits with a non-zero exit code causes the build to fail.
@@ -85,8 +86,8 @@ script:
85 - "echo 'packages: .' > cabal.project"
86 - "echo 'packages: .' > cabal.project"
86 # this builds all libraries and executables (without tests/benchmarks)
87 # this builds all libraries and executables (without tests/benchmarks)
87 - rm -f cabal.project.freeze
88 - rm -f cabal.project.freeze
88− - cabal new-build -w ${HC} --disable-tests --disable-benchmarks
89+ - cabal new-build ${CABALFLAGS} -w ${HC} --disable-tests --disable-benchmarks
89− - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --flag http-api-data:use-text-show
90+ - cabal new-build ${CABALFLAGS} -w ${HC} --disable-tests --disable-benchmarks --flag http-api-data:use-text-show
90 # this builds all libraries and executables (including tests/benchmarks)
91 # this builds all libraries and executables (including tests/benchmarks)
91 # - rm -rf ./dist-newstyle
92 # - rm -rf ./dist-newstyle
92 - cabal new-build -w ${HC} ${TEST} ${BENCH}
93 - cabal new-build -w ${HC} ${TEST} ${BENCH}