Skip to content

Commit 1530636

Browse files
committed
Centralize cabal-install version.
1 parent 9404507 commit 1530636

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

Diff for: .travis.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
env:
2-
- GHCVER=7.0.4
3-
- GHCVER=7.2.2
4-
- GHCVER=7.4.2
5-
- GHCVER=7.6.3
6-
- GHCVER=7.8.3
7-
- GHCVER=head
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
811

912
matrix:
1013
allow_failures:
@@ -13,21 +16,21 @@ matrix:
1316
before_install:
1417
- sudo add-apt-repository -y ppa:hvr/ghc
1518
- sudo apt-get update -qq
16-
- sudo apt-get install -qq cabal-install-1.20 ghc-$GHCVER
19+
- sudo apt-get install -qq cabal-install-$CABALVER ghc-$GHCVER
1720
- export PATH="/opt/ghc/$GHCVER/bin:$PATH"
1821

1922
install:
20-
- cabal-1.20 update
23+
- cabal-$CABALVER update
2124
- ghc --version
2225
- ghc-pkg list
2326
- pushd ..
2427
- git clone --depth=100 --quiet https://github.com/haskell-opengl/OpenGLRaw.git
2528
- cd OpenGLRaw
26-
- cabal-1.20 install --enable-documentation
29+
- cabal-$CABALVER install --enable-documentation
2730
- popd
2831
- ghc-pkg list
2932

3033
script:
31-
- cabal-1.20 install --enable-documentation
32-
- cabal-1.20 sdist
34+
- cabal-$CABALVER install --enable-documentation
35+
- cabal-$CABALVER sdist
3336
- ghc-pkg list

0 commit comments

Comments
 (0)