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.
10 - GHCVER=7.6.3 ESVER=1.3.2
11 - GHCVER=7.8.2 ESVER=1.0.3
12 - GHCVER=7.8.2 ESVER=1.1.2
13 - GHCVER=7.8.2 ESVER=1.2.3
14 - GHCVER=7.8.2 ESVER=1.3.2
19# Note: the distinction between `before_install` and `install` is not
22 - sudo add-apt-repository -y ppa:hvr/ghc
24 - sudo apt-get install cabal-install-1.18 ghc-$GHCVER
25 - sudo apt-get install happy-1.19.3
26 - export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.3/bin:$PATH
27 - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
28 - sudo dpkg -i elasticsearch-$ESVER.deb
29 - sudo service elasticsearch start
33 - cabal-1.18 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
35# Here starts the actual work to be performed for the package under
36# test; any command which exits with a non-zero exit code causes the
39 # -v2 provides useful information for debugging
40 - cabal-1.18 configure --enable-tests --enable-benchmarks -v2
42 # this builds all libraries and executables
43 # (including tests/benchmarks)
49 # tests that a source-distribution can be generated
52 # check that the generated source-distribution can be built & installed
53 - export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
55 if [ -f "$SRC_TGZ" ]; then
56 cabal-1.18 install "$SRC_TGZ";
58 echo "expected '$SRC_TGZ' not found";
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list