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