File tree 1 file changed +25
-3
lines changed
1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change 1
- language : haskell
1
+ # Travis script based on https://github.com/hvr/multi-ghc-travis
2
2
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")
You can’t perform that action at this time.
0 commit comments