1# NB: don't set `language: haskell` here
3# Ensures that sudo is disabled, so that containerized builds are allowed
6# 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.
9 - env: CABALVER=1.16 GHCVER=7.4.2 GHCOPTS="-Werror" JOPTS=""
10 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" JOPTS="-j2"
12 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" JOPTS="-j2"
14 addons: {apt: {packages: [cabal-install-1.18, ghc-7.8.4], sources: [hvr-ghc]}}
15 - env: CABALVER=1.22 GHCVER=7.10.1 GHCOPTS="" JOPTS="-j2"
16 addons: {apt: {packages: [cabal-install-1.22, ghc-7.10.1],sources: [hvr-ghc]}}
17# - env: CABALVER=head GHCVER=head GHCOPTS="-Werror" JOPTS="-j2"
18# addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
20# Note: the distinction between `before_install` and `install` is not important.
22 - export PATH=/opt/ghc/$GHCVER/bin:$PATH
25 - cabal-$CABALVER update
26# - git clone https://github.com/jgm/pandoc-types && cd pandoc-types && cabal-1.18 install && cd ..
27 - cabal-$CABALVER install $JOPTS --only-dependencies --enable-tests
29# 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.
32 if [ "${CABALVER}" != "1.16" ]; then
33 cabal-$CABALVER sdist --output-directory=build
36 - cabal-$CABALVER configure --enable-tests -v2 # -v2 provides useful information for debugging
37 - cabal-$CABALVER build $JOPTS --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)
38 - cabal-$CABALVER test
39 - cabal-$CABALVER check
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