Skip to content

Commit 9fb72b3

Browse files
committed
Rearranged Travis CI configuration. Use Cabal head with GHC 7.8.3/head.
1 parent abf8a3c commit 9fb72b3

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

.travis.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
env:
2-
global:
3-
- CABALVER=1.20
4-
matrix:
5-
- GHCVER=7.0.4
6-
- GHCVER=7.2.2
7-
- GHCVER=7.4.2
8-
- GHCVER=7.6.3
9-
- GHCVER=7.8.3
10-
- GHCVER=head
2+
- CABALVER=1.20 GHCVER=7.0.4
3+
- CABALVER=1.20 GHCVER=7.2.2
4+
- CABALVER=1.20 GHCVER=7.4.2
5+
- CABALVER=1.20 GHCVER=7.6.3
6+
- CABALVER=1.20 GHCVER=7.8.3
7+
- CABALVER=head GHCVER=7.8.3
8+
- CABALVER=head GHCVER=head
119

1210
matrix:
1311
allow_failures:
14-
- env: GHCVER=head
12+
- env: CABALVER=head GHCVER=head
1513

1614
before_install:
1715
- sudo add-apt-repository -y ppa:hvr/ghc
1816
- sudo apt-get update -qq
19-
- sudo apt-get install -qq cabal-install-$CABALVER ghc-$GHCVER
20-
- export PATH="/opt/ghc/$GHCVER/bin:$PATH"
2117

2218
install:
23-
- cabal-$CABALVER update
19+
- sudo apt-get install -qq cabal-install-$CABALVER ghc-$GHCVER
20+
- export PATH="/opt/cabal/$CABALVER/bin:/opt/ghc/$GHCVER/bin:$PATH"
21+
22+
before_script:
23+
- cabal --version
24+
- cabal update
2425
- ghc --version
2526
- ghc-pkg list
2627
- pushd ..
2728
- git clone --depth=100 --quiet https://github.com/haskell-opengl/OpenGLRaw.git
2829
- cd OpenGLRaw
29-
- cabal-$CABALVER install --enable-documentation
30+
- cabal install --enable-documentation
3031
- popd
3132
- ghc-pkg list
3233
- pushd ..
3334
- git clone --depth=100 --quiet https://github.com/haskell-opengl/GLURaw.git
3435
- cd GLURaw
35-
- cabal-$CABALVER install --enable-documentation
36+
- cabal install --enable-documentation
3637
- popd
3738
- ghc-pkg list
3839

3940
script:
40-
- cabal-$CABALVER install --enable-documentation
41-
- cabal-$CABALVER sdist
41+
- cabal install --enable-documentation
42+
- cabal sdist
43+
44+
after_script:
4245
- ghc-pkg list

0 commit comments

Comments
 (0)