Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (34 sloc) 1.05 kB
657d710 @pcapriotti Test multiple GHC versions on Travis
authored
1 env:
540a536 @pcapriotti Test more GHC versions in Travis
authored
2 - GHCVER=7.0.4
3 - GHCVER=7.2.2
657d710 @pcapriotti Test multiple GHC versions on Travis
authored
4 - GHCVER=7.4.2
5 - GHCVER=7.6.3
6 - GHCVER=7.8.3
540a536 @pcapriotti Test more GHC versions in Travis
authored
7 - GHCVER=head
8
9 matrix:
10 allow_failures:
11 - env: GHCVER=head
657d710 @pcapriotti Test multiple GHC versions on Travis
authored
12
13 before_install:
14 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
15 - travis_retry sudo apt-get update
3b09d5c @pcapriotti Switch to tasty
authored
16 - travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER
17 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:$HOME/.cabal/bin:$PATH
3011620 @pcapriotti Install happy and alex in travis
authored
18 - |
19 if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ]; then
20 travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
21 export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
22 else
23 travis_retry sudo apt-get install happy alex
24 fi
657d710 @pcapriotti Test multiple GHC versions on Travis
authored
25
26 install:
3b09d5c @pcapriotti Switch to tasty
authored
27 - /bin/true
657d710 @pcapriotti Test multiple GHC versions on Travis
authored
28
29 script:
3b09d5c @pcapriotti Switch to tasty
authored
30 - cabal update
31 - export VERSION=$(cabal info . | awk 'NR==1 { n=split($2,x,"-"); print x[n]; }')
32 - cabal install
33 - cd tests
540a536 @pcapriotti Test more GHC versions in Travis
authored
34 - |
35 if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.6" ] || [ ${GHCVER%.*} = "7.4" ] ; then
36 cabal install --constraint="optparse-applicative < $VERSION"
37 optparse-applicative-tests
38 fi
Something went wrong with that request. Please try again.