Skip to content

Commit 1bb64e9

Browse files
Travis.yml now tests multiple versions of GHC.
Suggestions from https://github.com/hvr/multi-ghc-travis
1 parent a4dfecc commit 1bb64e9

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.travis.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1-
language: haskell
1+
# I do not wish to receive email notifications
22
notifications:
33
email: false
4+
5+
# NB: don't set `language: haskell` here
6+
7+
# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
8+
env:
9+
- CABALVER=1.18 GHCVER=7.6.3
10+
- CABALVER=1.18 GHCVER=7.8.3
11+
- CABALVER=1.22 GHCVER=7.10.1
12+
13+
# Note: the distinction between `before_install` and `install` is not important.
414
before_install:
5-
- cd reactive-banana/
15+
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
16+
- travis_retry sudo apt-get update
17+
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
18+
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
19+
620
install:
7-
- cabal install --only-dependencies --enable-tests --force-reinstalls
21+
- cabal --version
22+
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
23+
- travis_retry cabal update
24+
- cd reactive-banana/
25+
- cabal install --only-dependencies --enable-tests --enable-benchmarks
26+
827
before_script:
928
- cabal configure
1029
- cabal sdist

0 commit comments

Comments
 (0)