-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
33 lines (29 loc) · 1003 Bytes
/
.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
# https://github.com/hvr/multi-ghc-travis
env:
- GHCVER=7.8.4 CABALVER=1.20
before_install:
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install -y cabal-install-$CABALVER ghc-$GHCVER wget
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
install:
- cabal --version
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- travis_retry cabal update
- cabal sandbox init
- travis_retry wget http://www.stackage.org/lts/cabal.config
- cabal install -j --enable-tests --enable-benchmarks --only-dependencies
script:
- cabal install -j --enable-tests --enable-benchmarks
- cabal test
- cabal check
#- cabal haddock
- cabal sdist
#- export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
# cd dist/;
# if [ -f "$SRC_TGZ" ]; then
# cabal install --force-reinstalls "$SRC_TGZ";
# else
# echo "expected '$SRC_TGZ' not found";
# exit 1;
# fi