@@ -1,42 +1,35 @@
2− - GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=
2+
3− - GHCVER=7.8.4 CABALVER=1.18 CABAL_FLAGS=
3+addons:
4− - GHCVER=7.10.2 CABALVER=1.22 CABAL_FLAGS=
4+ apt:
5− - GHCVER=head CABALVER=head CABAL_FLAGS=
5+ sources:
6− - GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=use-text-show
6+ - hvr-ghc
7− - GHCVER=7.8.4 CABALVER=1.18 CABAL_FLAGS=use-text-show
7+ packages:
8− - GHCVER=7.10.2 CABALVER=1.22 CABAL_FLAGS=use-text-show
8+ - happy-1.19.5
9− - GHCVER=head CABALVER=head CABAL_FLAGS=use-text-show
9+ - libgmp-dev
12− allow_failures:
12+ - STACK_YAML=stack.yaml FLAGS="--flag http-api-data:use-text-show"
13− - env: GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=
13+ - STACK_YAML=stack-ghc-7.8.yaml FLAGS="--flag http-api-data:use-text-show"
14− - env: GHCVER=head CABALVER=head CABAL_FLAGS=
14+ - STACK_YAML=stack-ghc-7.10.yaml FLAGS="--flag http-api-data:use-text-show"
15− - env: GHCVER=7.6.3 CABALVER=1.18 CABAL_FLAGS=use-text-show
15+ - STACK_YAML=stack.yaml FLAGS=
16− - env: GHCVER=head CABALVER=head CABAL_FLAGS=use-text-show
16+ - STACK_YAML=stack-ghc-7.8.yaml FLAGS=
17+ - STACK_YAML=stack-ghc-7.10.yaml FLAGS=
18before_install:
19before_install:
19− - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
20+ # Download and unpack the stack executable
20− - travis_retry sudo apt-get update
21+ - mkdir -p ~/.local/bin
21− - travis_retry sudo apt-get install -y cabal-install-$CABALVER ghc-$GHCVER
22+ - export PATH=$HOME/.local/bin:/opt/happy/1.19.5/bin:$PATH
22− - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.cabal/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
23− - cabal --version
25+ - stack --version
26− - cabal update
28+ - stack setup
27− - cabal install --only-dependencies --enable-tests --flags=$CABAL_FLAGS
30− - cabal configure --enable-tests -v2 --flags=$CABAL_FLAGS
31+ - stack --no-terminal build --test $FLAGS
32− - cabal test
33+cache:
33− - cabal check
34+ directories:
34− - cabal sdist
35+ - $HOME/.stack
35− - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
37− if [ -f "$SRC_TGZ" ]; then
38− cabal install "$SRC_TGZ";
40− echo "expected '$SRC_TGZ' not found";