git.iko.soy/typeable/pandoc
on master help sign in
.travis.yml - use --fast and --disable-optimization rather than -O0.
8959369John MacFarlane
.travis.yml+12−12
@@ -31,25 +31,25 @@ matrix:
31 include:
31 include:
32 # We grab the appropriate GHC and cabal-install versions from hvr's PPA. See:
32 # We grab the appropriate GHC and cabal-install versions from hvr's PPA. See:
33 # https://github.com/hvr/multi-ghc-travis
33 # https://github.com/hvr/multi-ghc-travis
34− - env: BUILD=cabal GHCVER=7.8.4 CABALVER=1.18 OPTS="-O0 -Wall -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS="--enable-benchmarks"
34+ - env: BUILD=cabal GHCVER=7.8.4 CABALVER=1.18 OPTS="-Wall -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS="--enable-benchmarks"
35 compiler: ": #GHC 7.8.4"
35 compiler: ": #GHC 7.8.4"
36 addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,happy-1.19.5], sources: [hvr-ghc]}}
36 addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,happy-1.19.5], sources: [hvr-ghc]}}
37
37
38 # don't build benchmarks for ghc 7.10.3, because build takes too long...
38 # don't build benchmarks for ghc 7.10.3, because build takes too long...
39− - env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 OPTS="-O0 -Wall -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS=""
39+ - env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 OPTS="-Wall -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS=""
40 compiler: ": #GHC 7.10.3"
40 compiler: ": #GHC 7.10.3"
41 addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
41 addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
42
42
43 # don't build benchmarks for ghc 8.0.2, because build takes too long...
43 # don't build benchmarks for ghc 8.0.2, because build takes too long...
44− - env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 OPTS="-O0 -Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast" CABALARGS=""
44+ - env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast" CABALARGS=""
45 compiler: ": #GHC 8.0.2"
45 compiler: ": #GHC 8.0.2"
46 addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,happy-1.19.5], sources: [hvr-ghc]}}
46 addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,happy-1.19.5], sources: [hvr-ghc]}}
47
47
48− - env: BUILD=cabal GHCVER=8.2.1 CABALVER=1.24 OPTS="-O0 -Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS="--enable-benchmarks"
48+ - env: BUILD=cabal GHCVER=8.2.1 CABALVER=1.24 OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS="--enable-benchmarks"
49 compiler: ": #GHC 8.2.1"
49 compiler: ": #GHC 8.2.1"
50 addons: {apt: {packages: [cabal-install-1.24,ghc-8.2.1,happy-1.19.5], sources: [hvr-ghc]}}
50 addons: {apt: {packages: [cabal-install-1.24,ghc-8.2.1,happy-1.19.5], sources: [hvr-ghc]}}
51
51
52− - env: BUILD=cabal GHCVER=8.2.1 CABALVER=2.0 OPTS="-O0 -Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS="--enable-benchmarks"
52+ - env: BUILD=cabal GHCVER=8.2.1 CABALVER=2.0 OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS="--enable-benchmarks"
53 compiler: ": #GHC 8.2.1"
53 compiler: ": #GHC 8.2.1"
54 addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1,happy-1.19.5], sources: [hvr-ghc]}}
54 addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1,happy-1.19.5], sources: [hvr-ghc]}}
55
55
@@ -61,7 +61,7 @@ matrix:
61
61
62 # The Stack builds. We can pass in arbitrary Stack arguments via the ARGS
62 # The Stack builds. We can pass in arbitrary Stack arguments via the ARGS
63 # variable, such as using --stack-yaml to point to a different file.
63 # variable, such as using --stack-yaml to point to a different file.
64− - env: BUILD=stack ARGS="--resolver lts-9" OPTS="-O0 -Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
64+ - env: BUILD=stack ARGS="--resolver lts-9" OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
65 compiler: ": #stack 8.0.2"
65 compiler: ": #stack 8.0.2"
66 addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
66 addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
67
67
@@ -82,8 +82,8 @@ matrix:
82 allow_failures:
82 allow_failures:
83 - env: BUILD=cabal GHCVER=head CABALVER=head
83 - env: BUILD=cabal GHCVER=head CABALVER=head
84 - env: BUILD=stack ARGS="--resolver nightly"
84 - env: BUILD=stack ARGS="--resolver nightly"
85− - env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 OPTS="-O0 -Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast" CABALARGS=""
85+ - env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast" CABALARGS=""
86− - env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 OPTS="-O0 -Wall -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS=""
86+ - env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 OPTS="-Wall -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS=""
87
87
88 fast_finish: true
88 fast_finish: true
89
89
@@ -116,7 +116,7 @@ install:
116 ulimit -n 4096
116 ulimit -n 4096
117 cabal --version
117 cabal --version
118 travis_retry cabal update
118 travis_retry cabal update
119− cabal install -j --only-dependencies --flags="$FLAGS" --enable-tests --force-reinstalls --ghc-options="-O0" --reorder-goals --max-backjumps=-1 $CABALARGS
119+ cabal install --disable-optimization -j --only-dependencies --flags="$FLAGS" --enable-tests --force-reinstalls --reorder-goals --max-backjumps=-1 $CABALARGS
120 ;;
120 ;;
121 esac
121 esac
122
122
@@ -125,14 +125,14 @@ script:
125 case "$BUILD" in
125 case "$BUILD" in
126 stack)
126 stack)
127 ulimit -n 4096
127 ulimit -n 4096
128− stack --no-terminal $ARGS test --flag 'aeson:fast' --flag pandoc:embed_data_files --haddock --no-haddock-deps --ghc-options="$OPTS"
128+ stack --no-terminal $ARGS test --fast --flag 'aeson:fast' --flag pandoc:embed_data_files --haddock --no-haddock-deps --ghc-options="$OPTS"
129 ;;
129 ;;
130 cabal)
130 cabal)
131 ulimit -n 4096
131 ulimit -n 4096
132 cabal sdist --output-directory=sourcedist && \
132 cabal sdist --output-directory=sourcedist && \
133 cd sourcedist && \
133 cd sourcedist && \
134− cabal configure --enable-tests -v3 --flags="$FLAGS" --ghc-options="$OPTS" $CABALARGS && \
134+ cabal configure --disable-optimization --enable-tests -v2 --flags="$FLAGS" --ghc-options="$OPTS" $CABALARGS && \
135− cabal build -v3 && \
135+ cabal build -v2 && \
136 cabal test
136 cabal test
137 ;;
137 ;;
138 esac
138 esac