]> git.immae.eu Git - github/fretlink/hmacaroons.git/blame_incremental - .travis.yml
Remove hpc-coveralls for now
[github/fretlink/hmacaroons.git] / .travis.yml
... / ...
CommitLineData
1language: c
2
3sudo: 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.
9matrix:
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
21before_install:
22 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
23
24install:
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 --only-dependencies
30
31script:
32 - cabal configure --enable-tests --enable-benchmarks -v2
33 - cabal build
34
35 - cabal test --show-details=streaming
36
37 - cabal check
38
39 - cabal sdist
40
41 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
42 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
43
44# EOF