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