git.iko.soy/typeable/bloodhound
on master help sign in
merged
f5b89b1Chris Allen
.travis.yml+21−29
@@ -1,11 +1,11 @@
1−# NB: don't set `language: haskell` here
1+sudo: false
2
2
3−# See also https://github.com/hvr/multi-ghc-travis for more information
3+addons:
4+ apt:
5+ packages:
6+ - libgmp-dev
7+ - openjdk-6-jre
4
8
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:
9env:
10 # - GHCVER=7.6.3 ESVER=1.6.0 # Deprecated
10 # - GHCVER=7.6.3 ESVER=1.6.0 # Deprecated
11 # - GHCVER=7.8.3 ESVER=1.0.3 # Deprecated
11 # - GHCVER=7.8.3 ESVER=1.0.3 # Deprecated
@@ -17,33 +17,25 @@ env:
17 - GHCVER=7.10 ESVER=1.6.0
17 - GHCVER=7.10 ESVER=1.6.0
18 - GHCVER=7.10 ESVER=1.7.2
18 - GHCVER=7.10 ESVER=1.7.2
19
19
20−# services:
21−# - elasticsearch
22−
23−# Note: the distinction between `before_install` and `install` is not
24−# important.
25−before_install:
26− - export STACK_YAML=stack-$GHCVER.yaml
27− - wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
28− - echo 'deb http://download.fpcomplete.com/ubuntu/precise stable main' | sudo tee /etc/apt/sources.list.d/fpco.list
29− - sudo apt-get update
30− - sudo apt-get install stack -y
31− - stack setup
32− - stack update
33− - wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
34− - sudo dpkg --force-all -i elasticsearch-$ESVER.deb
35− - sudo service elasticsearch start
36−
37install:
20install:
21+ # stack
22+ - export STACK_YAML=stack-$GHCVER.yaml
23+ - mkdir -p ~/.local/bin
24+ - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar -xvzf -
25+ - mv stack ~/.local/bin
26+ - export PATH=~/.local/bin:$PATH
38− - stack build
27+ - stack --version
28+
29+ # elasticsearch
30+ - wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$ESVER.tar.gz
31+ - tar xzf elasticsearch-$ESVER.tar.gz
32+ - ./elasticsearch-$ESVER/bin/elasticsearch &
39
33
40−# Here starts the actual work to be performed for the package under
41−# test; any command which exits with a non-zero exit code causes the
42−# build to fail.
43script:
34script:
35+ - stack setup
36+ - stack build
44− - stack test
37+ - stack test
45
38
46− # Caching so the next build will be fast too.
47cache:
39cache:
48 directories:
40 directories:
49 - $HOME/.stack
41 - $HOME/.stack