-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
34 lines (30 loc) · 1.57 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# https://github.com/hvr/multi-ghc-travis/blob/master/.travis.yml
language: c
env:
- CABALVER=2.0 GHCVER=8.2.2 ALEXVER=3.1.7 FLAGS=-fdocs HAPPYVER=1.19.9 MTL=
- CABALVER=2.0 GHCVER=8.2.2 ALEXVER=3.1.7 FLAGS=-f-docs HAPPYVER=1.19.9 MTL=
- CABALVER=2.2 GHCVER=8.4.3 ALEXVER=3.1.7 FLAGS=-fdocs HAPPYVER=1.19.9 MTL=
- CABALVER=2.2 GHCVER=8.4.3 ALEXVER=3.1.7 FLAGS=-f-docs HAPPYVER=1.19.9 MTL=
- CABALVER=2.2 GHCVER=8.6.1 ALEXVER=3.1.7 FLAGS=-fdocs HAPPYVER=1.19.9 MTL=
- CABALVER=2.2 GHCVER=8.6.1 ALEXVER=3.1.7 FLAGS=-f-docs HAPPYVER=1.19.9 MTL=
# TODO: Enable when sqlite-simple updated
# - CABALVER=3.0 GHCVER=8.8.1 ALEXVER=3.2.4 FLAGS=-fdocs HAPPYVER=1.19.12 MTL= NEW_CABAL=1 PREFIX=new-
# - CABALVER=3.0 GHCVER=8.8.1 ALEXVER=3.2.4 FLAGS=-f-docs HAPPYVER=1.19.12 MTL= NEW_CABAL=1 PREFIX=new-
before_install:
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install --force-yes cabal-install-$CABALVER ghc-$GHCVER
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
install:
- cabal --version
- echo "$(ghc --version)"
- travis_retry cabal update
# install latest version of deps within sandbox
- if [ ! $NEW_CABAL ]; then cabal sandbox init; fi
# end
- cabal install $MTL happy-$HAPPYVER alex-$ALEXVER --project-file=
- if [ $NEW_CABAL ]; then cabal new-configure --enable-tests $FLAGS; cabal new-build --only-dependencies; else cabal install --only-dependencies --enable-tests $FLAGS; cabal configure --enable-tests; fi
script:
- cabal ${PREFIX}build
- cabal ${PREFIX}test
- cabal ${PREFIX}sdist