git.iko.soy/typeable/pandoc
on master help sign in
.travis.yml: define GHC_OPTIONS global variable
commitdc4b5cb0e55a992e02e5a9d6567e88674c6a18d9 authorAlbert Krewinkel <albert@zeitkraut.de> dateSat 27 Oct 2018, 20:35 (8 years ago) parentfc3f055
1 file changed+7−11
.travis.yml+7−11
.travis.yml+7−11
@@ -14,6 +14,10 @@ cache:
1414 - $HOME/.cabal
1515 - $HOME/.stack
1616
17+env:
18+ global:
19+ - GHC_OPTIONS="-O0 -Werror"
20+
1721# The different configurations we want to test. We have BUILD=cabal which uses
1822# cabal-install, and BUILD=stack which uses Stack. More documentation on each
1923# of those below.
@@ -36,7 +40,6 @@ matrix:
3640 BUILD=cabal
3741 GHCVER=7.10.3
3842 CABALVER=2.0
39− OPTS="-O0 -Werror"
4043 FLAGS="fast embed_data_files"
4144 CABALARGS=""
4245 TESTPATTERN="! /Round trip/"
@@ -48,7 +51,6 @@ matrix:
4851 BUILD=cabal
4952 GHCVER=8.0.2
5053 CABALVER=2.0
51− OPTS="-O0 -Werror"
5254 FLAGS="fast"
5355 CABALARGS=""
5456 TESTPATTERN="! /Round trip/"
@@ -59,7 +61,6 @@ matrix:
5961 BUILD=cabal
6062 GHCVER=8.2.2
6163 CABALVER=2.0
62− OPTS="-O0 -Werror"
6364 FLAGS="fast embed_data_files"
6465 CABALARGS="--enable-benchmarks"
6566 TESTPATTERN="! /Round trip/"
@@ -70,7 +71,6 @@ matrix:
7071 BUILD=cabal
7172 GHCVER=8.4.3
7273 CABALVER=2.2
73− OPTS="-O0 -Werror"
7474 FLAGS="fast embed_data_files"
7575 CABALARGS="--enable-benchmarks"
7676 TESTPATTERN="! /Round trip/"
@@ -81,7 +81,6 @@ matrix:
8181 # BUILD=cabal
8282 # GHCVER=8.6.1
8383 # CABALVER=2.4
84− # OPTS="-O0 -Werror"
8584 # FLAGS="fast embed_data_files"
8685 # CABALARGS="--enable-benchmarks --allow-newer=haddock-library:base"
8786 # TESTPATTERN="! /Round trip/"
@@ -95,14 +94,13 @@ matrix:
9594
9695 # The Stack builds. We can pass in arbitrary Stack arguments via the ARGS
9796 # variable, such as using --stack-yaml to point to a different file.
98− # - env: BUILD=stack ARGS="--stack-yaml stack.lts9.yaml" OPTS="-O0 -Werror" FLAGS="fast embed_data_files"
97+ # - env: BUILD=stack ARGS="--stack-yaml stack.lts9.yaml" FLAGS="fast embed_data_files"
9998 # compiler: ": #stack 8.0.2"
10099 # addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
101100
102101 - env: >-
103102 BUILD=stack
104103 ARGS="--resolver lts-12"
105− OPTS="-O0 -Werror"
106104 TESTPATTERN="! /Round trip/"
107105 compiler: ": #stack 8.4.3"
108106 addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
@@ -111,7 +109,6 @@ matrix:
111109 - env: >-
112110 BUILD=stack
113111 ARGS="--resolver nightly"
114− OPTS="-O0 -Werror"
115112 TESTPATTERN="."
116113 compiler: ": #stack nightly"
117114 addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
@@ -129,7 +126,6 @@ matrix:
129126 - env: >-
130127 BUILD=stack
131128 ARGS="--resolver nightly"
132− OPTS="-O0 -Werror"
133129 TESTPATTERN="."
134130
135131 fast_finish: true
@@ -189,14 +185,14 @@ script:
189185 stack config set system-ghc --global true
190186 stack --no-terminal $ARGS test --fast --flag 'aeson:fast' \
191187 --flag pandoc:embed_data_files --haddock --no-haddock-deps \
192− --ghc-options="$OPTS" \
188+ --ghc-options="$GHC_OPTIONS" \
193189 --test-arguments="--hide-successes --pattern \"$TESTPATTERN\""
194190 ;;
195191 cabal)
196192 cabal sdist --output-directory=sourcedist && \
197193 cd sourcedist && \
198194 cabal configure --disable-optimization --enable-tests -v2 \
199− --flags="$FLAGS" --ghc-options="$OPTS" $CABALARGS && \
195+ --flags="$FLAGS" --ghc-options="$GHC_OPTIONS" $CABALARGS && \
200196 cabal build -v2 -j2 && \
201197 cabal test --test-options="--pattern=\"$TESTPATTERN\""
202198 ;;