fuck it, use Stack

This commit is contained in:
Chris Allen 2015-08-23 11:45:14 -05:00
parent 165c7283c7
commit ff2a8923a0

View File

@ -22,35 +22,21 @@ env:
# Note: the distinction between `before_install` and `install` is not
# important.
before_install:
- rm -rf ~/.ghc ~/.cabal
- sudo add-apt-repository -y ppa:hvr/ghc
- wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
- echo 'deb http://download.fpcomplete.com/ubuntu/precise stable main' | sudo tee /etc/apt/sources.list.d/fpco.list
- sudo apt-get update
- sudo apt-get install cabal-install-1.22 ghc-$GHCVER
- sudo apt-get install happy-1.19.3
- export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.3/bin:$PATH
- sudo apt-get install stack -y
- wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
- sudo dpkg --force-all -i elasticsearch-$ESVER.deb
- sudo service elasticsearch start
install:
- cabal-1.22 update
- cabal-1.22 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
- stack build
# 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
- cabal-1.22 configure --enable-tests --enable-benchmarks -v2
# this builds all libraries and executables
# (including tests/benchmarks)
- cabal-1.22 build
- cabal-1.22 test
- cabal-1.22 check
# tests that a source-distribution can be generated
- cabal-1.22 sdist
- stack test
# EOF