git.iko.soy/typeable/mandrill
on master help sign in
typeable/mandrill/.travis.yml
51 lines 1.6 kB history raw
1# See https://github.com/hvr/multi-ghc-travis
2# 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.
4notifications:
5 email: false
7env:
8 - GHCVER=7.6.3 CABALVER=1.16
9 - GHCVER=7.8.2 CABALVER=1.18
10 - GHCVER=7.8.3 CABALVER=1.18
11 - GHCVER=7.10.2 CABALVER=1.22
12 - GHCVER=8.0.1 CABALVER=1.22
13 - GHCVER=head CABALVER=1.22
15matrix:
16 allow_failures:
17 - env: GHCVER=8.0.1 CABALVER=1.22
18 - env: GHCVER=head CABALVER=1.22
20before_install:
21 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
22 - travis_retry sudo apt-get update
23 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
24 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
25 - cabal --version
27install:
28 - cabal update
29 - cabal install --only-dependencies --enable-tests
31script:
32 - cabal configure --enable-tests -v2 --enable-library-coverage
33 - cabal build
34 - cabal test --show-details=always
35 - cabal check
36 - cabal sdist
38# The following scriptlet checks that the resulting source distribution can be built & installed
39 - export SRC_TGZ=$(cabal-$CABALVER info . | awk '{print $2 ".tar.gz";exit}') ;
40 cd dist/;
41 if [ -f "$SRC_TGZ" ]; then
42 cabal install "$SRC_TGZ";
43 else
44 echo "expected '$SRC_TGZ' not found";
45 exit 1;
46 fi
48after_script:
49 - cabal install hpc-coveralls
50 - export PATH=/opt/ghc/$GHCVER/bin:$HOME/.cabal/bin:$PATH
51 - hpc-coveralls --coverage-mode=StrictlyFullLines mandrill-tests