1# This .travis.yml is modified from the sample at
2# https://docs.haskellstack.org/en/stable/GUIDE/#travis-with-caching
4# Use new container infrastructure to enable caching
7# Do not choose a language; we provide our own build tools.
10# Caching so the next build will be fast too.
17# The different configurations we want to test. We have BUILD=cabal which uses
18# cabal-install, and BUILD=stack which uses Stack. More documentation on each
21# We set the compiler values here to tell Travis to use a different
22# cache file per set of arguments.
24# If you need to have different apt packages for each combination in the
25# matrix, you can use a line such as:
26# addons: {apt: {packages: [libfcgi-dev,libgmp-dev]}}
28# fast_finish: build successful when every builds not in allow_failure are finished
29# i.e. not waiting any of the allow_failure to finish
32 # We grab the appropriate GHC and cabal-install versions from hvr's PPA. See:
33 # https://github.com/hvr/multi-ghc-travis
34 # don't build benchmarks for ghc 7.10.3, because build takes too long...
35 - env: BUILD=cabal GHCVER=7.10.3 CABALVER=2.0 OPTS="-O0 -Wall -fno-warn-unused-do-bind -Werror" FLAGS="fast embed_data_files" CABALARGS=""
36 compiler: ": #GHC 7.10.3"
37 addons: {apt: {packages: [cabal-install-2.0,ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
39 # don't build benchmarks for ghc 8.0.2, because build takes too long...
40 - env: BUILD=cabal GHCVER=8.0.2 CABALVER=2.0 OPTS="-O0 -Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror" FLAGS="fast" CABALARGS=""
41 compiler: ": #GHC 8.0.2"
42 addons: {apt: {packages: [cabal-install-2.0,ghc-8.0.2,happy-1.19.5], sources: [hvr-ghc]}}
44 - env: BUILD=cabal GHCVER=8.2.2 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"
45 compiler: ": #GHC 8.2.2"
46 addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,happy-1.19.5], sources: [hvr-ghc]}}
48 - env: BUILD=cabal GHCVER=8.4.3 CABALVER=2.2 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"
49 compiler: ": #GHC 8.4.3"
50 addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.3,happy-1.19.5], sources: [hvr-ghc]}}
52 # Build with the newest GHC and cabal-install. This is an accepted failure,
54 # - env: BUILD=cabal GHCVER=head CABALVER=head CABALAGS="--allow-newer"
55 # compiler: ": #GHC HEAD"
56 # addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
58 # The Stack builds. We can pass in arbitrary Stack arguments via the ARGS
59 # variable, such as using --stack-yaml to point to a different file.
60 # - env: BUILD=stack ARGS="--stack-yaml stack.lts9.yaml" OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
61 # compiler: ": #stack 8.0.2"
62 # addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
64 - env: BUILD=stack ARGS="--resolver lts-12" OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
65 compiler: ": #stack 8.2.2"
66 addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
68 # Nightly builds are allowed to fail
69 - env: BUILD=stack ARGS="--resolver nightly" OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
70 compiler: ": #stack nightly"
71 addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
73 # - env: BUILD=stack ARGS="--resolver lts-8"
74 # compiler: ": #stack 8.0.2 osx"
77 # - env: BUILD=stack ARGS="--resolver nightly"
78 # compiler: ": #stack nightly osx"
82 - env: BUILD=cabal GHCVER=head CABALVER=head
83 - env: BUILD=stack ARGS="--resolver nightly" OPTS="-Wall -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -fno-warn-unused-do-bind -Werror"
88# Using compiler above sets CC to an invalid value, so unset it
90- export PATH=/opt/happy/1.19.5/bin/:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/cabal/bin:$HOME/.local/bin:$HOME/.cabal/bin:$PATH
91# Download and unpack the stack executable
93 if [[ $BUILD == "stack" ]]; then
95 if [ `uname` = "Darwin" ]
97 curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
99 curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
104- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
105- if [ -f configure.ac ]; then autoreconf -i; fi
110 stack config set system-ghc --global true
111 stack --no-terminal --install-ghc $ARGS build --only-dependencies --fast --flag 'pandoc:embed_data_files' --flag 'aeson:fast' --jobs 2
115 travis_retry cabal update
118 cabal install -v1 --disable-optimization --flags="$FLAGS" --enable-tests --force-reinstalls --reorder-goals --max-backjumps=-1 $CABALARGS
121 cabal install --disable-optimization --only-dependencies --flags="$FLAGS" --enable-tests --force-reinstalls --reorder-goals --max-backjumps=-1 $CABALARGS
132 stack config set system-ghc --global true
133 stack --no-terminal $ARGS test --fast --flag 'aeson:fast' --flag pandoc:embed_data_files --haddock --no-haddock-deps --ghc-options="$OPTS" --test-arguments='--hide-successes'
136 cabal sdist --output-directory=sourcedist && \
138 cabal configure --disable-optimization --enable-tests -v2 --flags="$FLAGS" --ghc-options="$OPTS" $CABALARGS && \
139 cabal build -v2 -j2 && \
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list