git.iko.soy/typeable/bloodhound
on e449cf3 help sign in
typeable/bloodhound/.travis.yml
53 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 ESVER=1.4.1
11 - GHCVER=7.8.3 ESVER=1.0.3
12 - GHCVER=7.8.3 ESVER=1.1.2
13 - GHCVER=7.8.3 ESVER=1.2.4
14 - GHCVER=7.8.3 ESVER=1.3.6
15 - GHCVER=7.8.3 ESVER=1.4.1
17# services:
18# - elasticsearch
20# Note: the distinction between `before_install` and `install` is not
21# important.
22before_install:
23 - sudo add-apt-repository -y ppa:hvr/ghc
24 - sudo apt-get update
25 - sudo apt-get install cabal-install-1.20 ghc-$GHCVER
26 - sudo apt-get install happy-1.19.3
27 - export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.3/bin:$PATH
28 - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
29 - sudo dpkg --force-all -i elasticsearch-$ESVER.deb
30 - sudo service elasticsearch start
32install:
33 - cabal-1.20 update
34 - cabal-1.20 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
36# Here starts the actual work to be performed for the package under
37# test; any command which exits with a non-zero exit code causes the
38# build to fail.
39script:
40 # -v2 provides useful information for debugging
41 - cabal-1.20 configure --enable-tests --enable-benchmarks -v2
43 # this builds all libraries and executables
44 # (including tests/benchmarks)
45 - cabal-1.20 build
47 - cabal-1.20 test
48 - cabal-1.20 check
50 # tests that a source-distribution can be generated
51 - cabal-1.20 sdist
53# EOF