Skip to content

Commit 95b2783

Browse files
committed
Switch .travis.yml to hvr's mult-ghc-travis.
1 parent 28e0731 commit 95b2783

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.travis.yml

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
1-
language: haskell
1+
# Travis script based on https://github.com/hvr/multi-ghc-travis
22

3-
ghc:
4-
- '7.10'
3+
env:
4+
- CABALVER=1.22 GHCVER=7.10.1
5+
6+
before_install:
7+
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
8+
- travis_retry sudo apt-get update
9+
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
10+
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
11+
12+
install:
13+
- cabal --version
14+
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
15+
- travis_retry cabal update
16+
- cabal install --only-dependencies --enable-tests --enable-benchmarks
17+
18+
script:
19+
- cabal configure --enable-tests --enable-benchmarks -v2
20+
- cabal build
21+
- cabal test
22+
- cabal check
23+
- cabal sdist
24+
# check that the generated source-distribution can be built & installed
25+
- SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
26+
(cd dist && cabal install --force-reinstalls "$SRC_TGZ")

0 commit comments

Comments
 (0)