@@ -1,42 +1,35 @@
1−env:
2− - GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=
3− - GHCVER=7.8.4 CABALVER=1.18 CABAL_FLAGS=
4− - GHCVER=7.10.2 CABALVER=1.22 CABAL_FLAGS=
5− - GHCVER=head CABALVER=head CABAL_FLAGS=
6− - GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=use-text-show
7− - GHCVER=7.8.4 CABALVER=1.18 CABAL_FLAGS=use-text-show
8− - GHCVER=7.10.2 CABALVER=1.22 CABAL_FLAGS=use-text-show
9− - GHCVER=head CABALVER=head CABAL_FLAGS=use-text-show
1+sudo: false
2+
3+addons:
4+ apt:
5+ sources:
6+ - hvr-ghc
7+ packages:
8+ - happy-1.19.5
9+ - libgmp-dev
1010
11−matrix:
12− allow_failures:
13− - env: GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=
14− - env: GHCVER=head CABALVER=head CABAL_FLAGS=
15− - env: GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=use-text-show
16− - env: GHCVER=head CABALVER=head CABAL_FLAGS=use-text-show
11+env:
12+ - STACK_YAML=stack.yaml FLAGS="--flag http-api-data:use-text-show"
13+ - STACK_YAML=stack-ghc-7.8.yaml FLAGS="--flag http-api-data:use-text-show"
14+ - STACK_YAML=stack-ghc-7.10.yaml FLAGS="--flag http-api-data:use-text-show"
15+ - STACK_YAML=stack.yaml FLAGS=
16+ - STACK_YAML=stack-ghc-7.8.yaml FLAGS=
17+ - STACK_YAML=stack-ghc-7.10.yaml FLAGS=
1718
1819before_install:
19− - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
20− - travis_retry sudo apt-get update
21− - travis_retry sudo apt-get install -y cabal-install-$CABALVER ghc-$GHCVER
22− - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.cabal/bin:$PATH
23− - cabal --version
20+ # Download and unpack the stack executable
21+ - mkdir -p ~/.local/bin
22+ - export PATH=$HOME/.local/bin:/opt/happy/1.19.5/bin:$PATH
23+ - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
24+ - export PATH=~/.local/bin:$PATH
25+ - stack --version
2426
2527install:
26− - cabal update
27− - cabal install --only-dependencies --enable-tests --flags=$CABAL_FLAGS
28+ - stack setup
2829
2930script:
30− - cabal configure --enable-tests -v2 --flags=$CABAL_FLAGS
31− - cabal build
32− - cabal test
33− - cabal check
34− - cabal sdist
35− - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
36− cd dist/;
37− if [ -f "$SRC_TGZ" ]; then
38− cabal install "$SRC_TGZ";
39− else
40− echo "expected '$SRC_TGZ' not found";
41− exit 1;
42− fi
31+ - stack --no-terminal build --test $FLAGS
32+
33+cache:
34+ directories:
35+ - $HOME/.stack