aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJulien Tanguy <julien.tanguy@jhome.fr>2015-08-17 17:50:47 +0200
committerJulien Tanguy <julien.tanguy@jhome.fr>2015-08-17 17:50:47 +0200
commit246ff8df477f27ab4063bebc1a7750748b6fc512 (patch)
treec3ec7c6a9c5c7a614063ff0bfaaff254e72c0d8a
parent86f3882318d323d1920ca1c7da6e816f0ed376da (diff)
parent8872c6ad5cc057023b94f4c2561801849159afa1 (diff)
downloadhmacaroons-246ff8df477f27ab4063bebc1a7750748b6fc512.tar.gz
hmacaroons-246ff8df477f27ab4063bebc1a7750748b6fc512.tar.zst
hmacaroons-246ff8df477f27ab4063bebc1a7750748b6fc512.zip
Merge travis config from master
-rw-r--r--.travis.yml60
1 files changed, 27 insertions, 33 deletions
diff --git a/.travis.yml b/.travis.yml
index ebc8207..618741d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,51 +1,45 @@
1# NB: don't set `language: haskell` here 1# See also https://github.com/hvr/multi-ghc-travis for more information
2language: c 2language: c
3 3
4# See also https://github.com/hvr/multi-ghc-travis for more information 4sudo: false
5 5
6# The following lines enable several GHC versions and/or HP versions 6# The following lines enable several GHC versions and/or HP versions
7# to be tested; often it's enough to test only against the last 7# to be tested; often it's enough to test only against the last
8# release of a major GHC version. Setting HPVER implictly sets 8# release of a major GHC version. Setting HPVER implictly sets
9# GHCVER. Omit lines with versions you don't need/want testing for. 9# GHCVER. Omit lines with versions you don't need/want testing for.
10env: 10matrix:
11 - CABALVER=1.22 GHCVER=7.10.1 11 include:
12 - env: CABALVER=1.18 GHCVER=7.8.4 CTOPTS=""
13 addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
14 - env: CABALVER=1.22 GHCVER=7.10.1 CTOPTS="--show-details=streaming"
15 addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1],sources: [hvr-ghc]}}
16 - env: CABALVER=head GHCVER=head CTOPTS="--show-details=streaming"
17 addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
18
19 allow_failures:
20 - env: CABALVER=head GHCVER=head
12 21
13# Note: the distinction between `before_install` and `install` is not
14# important.
15before_install: 22before_install:
16 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc 23 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
17 - travis_retry sudo apt-get update
18 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
19 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
20 24
21install: 25install:
22 - cabal --version 26 - cabal --version
23 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]" 27 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
24 - travis_retry cabal update 28 - travis_retry cabal update
25 - cabal install hpc-coveralls 29 - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config # The container environment reports 16 cores
26 - cabal install --only-dependencies --enable-tests --enable-benchmarks --enable-coverage 30 - cabal install --only-dependencies --enable-tests --enable-benchmarks
27 31
28# Here starts the actual work to be performed for the package under
29# test; any command which exits with a non-zero exit code causes the
30# build to fail.
31script: 32script:
32 # -v2 provides useful information for debugging 33 - cabal configure --enable-tests --enable-benchmarks -v2
33 - cabal configure --enable-tests --enable-benchmarks -v2 34 - cabal build
34 35
35 # this builds all libraries and executables 36 - cabal test $CTOPTS
36 # (including tests/benchmarks)
37 - cabal build
38 37
39 - run-cabal-test --show-details=streaming 38 - cabal check
40 - cabal check
41 39
42 # tests that a source-distribution can be generated 40 - cabal sdist
43 - cabal sdist
44 41
45 # check that the generated source-distribution can be built & installed 42 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
46 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && 43 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
47 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
48 44
49after_script:
50 - hpc-coveralls test
51# EOF 45# EOF