Skip to content

Commit 94836cb

Browse files
committed
Test with several GHC versions on Travis CI.
1 parent 684b318 commit 94836cb

File tree

1 file changed

+32
-19
lines changed

1 file changed

+32
-19
lines changed

.travis.yml

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
1-
language: haskell
1+
env:
2+
- GHCVER=7.0.4
3+
- GHCVER=7.2.2
4+
- GHCVER=7.4.2
5+
- GHCVER=7.6.3
6+
- GHCVER=head
7+
28
before_install:
3-
- sudo apt-get update -qq
4-
- sudo apt-get install -qq haskell-platform-doc
5-
- ghc-pkg list
6-
- pushd ..
7-
- git clone --depth=100 --quiet https://github.com/haskell-opengl/OpenGLRaw.git
8-
- cd OpenGLRaw
9-
- git checkout
10-
- cabal install --enable-documentation
11-
- popd
12-
- ghc-pkg list
13-
- pushd ..
14-
- git clone --depth=100 --quiet https://github.com/haskell-opengl/GLURaw.git
15-
- cd GLURaw
16-
- git checkout
17-
- cabal install --enable-documentation
18-
- popd
19-
- ghc-pkg list
9+
- sudo add-apt-repository -y ppa:hvr/ghc
10+
- sudo apt-get update -qq
11+
- sudo apt-get install -qq cabal-install-1.18 ghc-$GHCVER
12+
- export PATH="/opt/ghc/$GHCVER/bin:$PATH"
13+
14+
install:
15+
- cabal-1.18 update
16+
- ghc --version
17+
- ghc-pkg list
18+
- pushd ..
19+
- git clone --depth=100 --quiet https://github.com/haskell-opengl/OpenGLRaw.git
20+
- cd OpenGLRaw
21+
- cabal-1.18 install --enable-documentation
22+
- popd
23+
- ghc-pkg list
24+
- pushd ..
25+
- git clone --depth=100 --quiet https://github.com/haskell-opengl/GLURaw.git
26+
- cd OpenGLRaw
27+
- cabal-1.18 install --enable-documentation
28+
- popd
29+
- ghc-pkg list
30+
2031
script:
21-
- cabal install --enable-documentation
32+
- cabal-1.18 install --enable-documentation
33+
- cabal-1.18 sdist
34+
- ghc-pkg list

0 commit comments

Comments
 (0)