bloodhound/.travis.yml

56 lines
1.8 KiB
YAML
Raw Normal View History

2014-05-03 09:31:43 +04:00
# NB: don't set `language: haskell` here
# See also https://github.com/hvr/multi-ghc-travis for more information
# The following lines enable several GHC versions and/or HP versions
# to be tested; often it's enough to test only against the last
# release of a major GHC version. Setting HPVER implictly sets
# GHCVER. Omit lines with versions you don't need/want testing for.
env:
- GHCVER=7.6.3 ESVER=1.6.0
# - GHCVER=7.8.3 ESVER=1.0.3 # Deprecated
# - GHCVER=7.8.3 ESVER=1.1.2 # Deprecated
2015-08-23 19:28:43 +03:00
- GHCVER=7.8.4 ESVER=1.2.4
- GHCVER=7.8.4 ESVER=1.3.6
- GHCVER=7.8.4 ESVER=1.4.1
- GHCVER=7.10.1 ESVER=1.5.2
- GHCVER=7.10.1 ESVER=1.6.0
2014-05-03 09:31:43 +04:00
2014-08-16 03:17:44 +04:00
# services:
# - elasticsearch
2014-05-03 09:31:43 +04:00
# Note: the distinction between `before_install` and `install` is not
# important.
before_install:
- sudo add-apt-repository -y ppa:hvr/ghc
- sudo apt-get update
2015-08-23 19:28:43 +03:00
- sudo apt-get install cabal-install-1.22 ghc-$GHCVER
2014-05-03 10:03:16 +04:00
- sudo apt-get install happy-1.19.3
- export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.3/bin:$PATH
- wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
2014-10-10 02:14:54 +04:00
- sudo dpkg --force-all -i elasticsearch-$ESVER.deb
2014-08-16 03:24:59 +04:00
- sudo service elasticsearch start
2014-05-03 09:31:43 +04:00
install:
2015-08-23 19:28:43 +03:00
- cabal-1.22 update
- cabal-1.22 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
2014-05-03 09:31:43 +04:00
# Here starts the actual work to be performed for the package under
# test; any command which exits with a non-zero exit code causes the
# build to fail.
script:
# -v2 provides useful information for debugging
2015-08-23 19:28:43 +03:00
- cabal-1.22 configure --enable-tests --enable-benchmarks -v2
2014-05-03 09:31:43 +04:00
# this builds all libraries and executables
# (including tests/benchmarks)
2015-08-23 19:28:43 +03:00
- cabal-1.22 build
2014-05-03 09:31:43 +04:00
2015-08-23 19:28:43 +03:00
- cabal-1.22 test
- cabal-1.22 check
2014-05-03 09:31:43 +04:00
# tests that a source-distribution can be generated
2015-08-23 19:28:43 +03:00
- cabal-1.22 sdist
2014-05-03 09:31:43 +04:00
# EOF