@@ -22,7 +22,7 @@ env:
22before_install:
22before_install:
23 - sudo add-apt-repository -y ppa:hvr/ghc
23 - sudo add-apt-repository -y ppa:hvr/ghc
24 - sudo apt-get update
24 - sudo apt-get update
25− - sudo apt-get install cabal-install-1.18 ghc-$GHCVER
25+ - sudo apt-get install cabal-install-1.20 ghc-$GHCVER
26 - sudo apt-get install happy-1.19.3
26 - sudo apt-get install happy-1.19.3
27 - export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.3/bin:$PATH
27 - export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.3/bin:$PATH
28 - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
28 - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.deb
@@ -30,31 +30,31 @@ before_install:
30 - sudo service elasticsearch start
30 - sudo service elasticsearch start
33− - cabal-1.18 update
33+ - cabal-1.20 update
34− - cabal-1.18 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
34+ - cabal-1.20 install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
36# Here starts the actual work to be performed for the package under
36# Here starts the actual work to be performed for the package under
37# test; any command which exits with a non-zero exit code causes the
37# test; any command which exits with a non-zero exit code causes the
38# build to fail.
38# build to fail.
40 # -v2 provides useful information for debugging
40 # -v2 provides useful information for debugging
41− - cabal-1.18 configure --enable-tests --enable-benchmarks -v2
41+ - cabal-1.20 configure --enable-tests --enable-benchmarks -v2
43 # this builds all libraries and executables
43 # this builds all libraries and executables
44 # (including tests/benchmarks)
44 # (including tests/benchmarks)
45− - cabal-1.18 build
45+ - cabal-1.20 build
47− - cabal-1.18 test
47+ - cabal-1.20 test
48− - cabal-1.18 check
48+ - cabal-1.20 check
50 # tests that a source-distribution can be generated
50 # tests that a source-distribution can be generated
51− - cabal-1.18 sdist
51+ - cabal-1.20 sdist
53 # check that the generated source-distribution can be built & installed
53 # check that the generated source-distribution can be built & installed
54− - export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
54+ - export SRC_TGZ=$(cabal-1.20 info . | awk '{print $2 ".tar.gz";exit}') ;
56 if [ -f "$SRC_TGZ" ]; then
56 if [ -f "$SRC_TGZ" ]; then
57− cabal-1.18 install "$SRC_TGZ";
57+ cabal-1.20 install "$SRC_TGZ";
59 echo "expected '$SRC_TGZ' not found";
59 echo "expected '$SRC_TGZ' not found";