]> git.immae.eu Git - github/fretlink/hmacaroons.git/blob - .travis.yml
Fix travix.yml
[github/fretlink/hmacaroons.git] / .travis.yml
1 language: c
2
3 sudo: false
4
5 # The following lines enable several GHC versions and/or HP versions
6 # to be tested; often it's enough to test only against the last
7 # release of a major GHC version. Setting HPVER implictly sets
8 # GHCVER. Omit lines with versions you don't need/want testing for.
9 matrix:
10 include:
11 - env: CABALVER=1.18 GHCVER=7.8.4
12 addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
13 - env: CABALVER=1.22 GHCVER=7.10.1
14 addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1],sources: [hvr-ghc]}}
15 - env: CABALVER=head GHCVER=head
16 addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
17
18 allow_failures:
19 - env: CABALVER=head GHCVER=head
20
21 before_install:
22 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
23
24 install:
25 - cabal --version
26 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
27 - travis_retry cabal update
28 - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config # The container environment reports 16 cores
29 - cabal install hpc-coveralls
30 - cabal install --only-dependencies
31
32 script:
33 - cabal configure --enable-tests --enable-benchmarks --enable-coverage -v2
34 - cabal build
35
36 - run-cabal-test --show-details=streaming
37
38 - cabal check
39
40 - cabal sdist
41
42 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
43 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
44
45 after_script:
46 - hpc-coveralls test
47 # EOF