@@ -1,11 +1,11 @@
1−# NB: don't set `language: haskell` here
1+sudo: false
3−# See also https://github.com/hvr/multi-ghc-travis for more information
3+addons:
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.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,30 +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
23−# Note: the distinction between `before_install` and `install` is not
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
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
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
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 &
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
44− - stack test
37+ - stack test