git.iko.soy/typeable/bloodhound
on cb80f47 help sign in
typeable/bloodhound/.travis.yml
56 lines 1.7 kB history raw
1# NB: don't set `language: haskell` here
3# See also https://github.com/hvr/multi-ghc-travis for more information
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.
9env:
10 - GHCVER=7.6.3
11 - GHCVER=7.8.2
13services:
14 - elasticsearch
16# Note: the distinction between `before_install` and `install` is not
17# important.
18before_install:
19 - sudo add-apt-repository -y ppa:hvr/ghc
20 - sudo apt-get update
21 - sudo apt-get install cabal-install-1.18 ghc-$GHCVER
22 - sudo apt-get install happy-1.19.3
23 - export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.3/bin:$PATH
25install:
26 - cabal-1.18 update
27 - cabal-1.18 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
29# Here starts the actual work to be performed for the package under
30# test; any command which exits with a non-zero exit code causes the
31# build to fail.
32script:
33 # -v2 provides useful information for debugging
34 - cabal-1.18 configure --enable-tests --enable-benchmarks -v2
36 # this builds all libraries and executables
37 # (including tests/benchmarks)
38 - cabal-1.18 build
40 - cabal-1.18 test
41 - cabal-1.18 check
43 # tests that a source-distribution can be generated
44 - cabal-1.18 sdist
46 # check that the generated source-distribution can be built & installed
47 - export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
48 cd dist/;
49 if [ -f "$SRC_TGZ" ]; then
50 cabal-1.18 install "$SRC_TGZ";
51 else
52 echo "expected '$SRC_TGZ' not found";
53 exit 1;
54 fi
56# EOF