@@ -22,35 +22,21 @@ env:
2222# Note: the distinction between `before_install` and `install` is not
2323# important.
2424before_install:
25− - rm -rf ~/.ghc ~/.cabal
26− - sudo add-apt-repository -y ppa:hvr/ghc
25+ - wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
26+ - echo 'deb http://download.fpcomplete.com/ubuntu/precise stable main' | sudo tee /etc/apt/sources.list.d/fpco.list
2727 - 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
28+ - sudo apt-get install stack -y
3129 - wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
3230 - sudo dpkg --force-all -i elasticsearch-$ESVER.deb
3331 - sudo service elasticsearch start
3432
3533install:
36− - cabal-1.22 update
37− - cabal-1.22 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
34+ - stack build
3835
3936# Here starts the actual work to be performed for the package under
4037# test; any command which exits with a non-zero exit code causes the
4138# build to fail.
4239script:
43− # -v2 provides useful information for debugging
44− - cabal-1.22 configure --enable-tests --enable-benchmarks -v2
45−
46− # this builds all libraries and executables
47− # (including tests/benchmarks)
48− - cabal-1.22 build
49−
50− - cabal-1.22 test
51− - cabal-1.22 check
52−
53− # tests that a source-distribution can be generated
54− - cabal-1.22 sdist
40+ - stack test
5541
5642# EOF