mirror of
https://github.com/ilyakooo0/optparse-applicative.git
synced 2024-09-17 13:37:29 +03:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
env:
|
|
- GHCVER=7.0.4
|
|
- GHCVER=7.2.2
|
|
- GHCVER=7.4.2
|
|
- GHCVER=7.6.3
|
|
- GHCVER=7.8.3
|
|
- GHCVER=head
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- env: GHCVER=head
|
|
|
|
before_install:
|
|
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
|
|
- travis_retry sudo apt-get update
|
|
- travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER
|
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:$HOME/.cabal/bin:$PATH
|
|
- |
|
|
if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ]; then
|
|
travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
|
|
export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
|
|
else
|
|
travis_retry sudo apt-get install happy alex
|
|
fi
|
|
|
|
install:
|
|
- /bin/true
|
|
|
|
script:
|
|
- cabal update
|
|
- export VERSION=$(cabal info . | awk 'NR==1 { n=split($2,x,"-"); print x[n]; }')
|
|
- cabal install
|
|
- cd tests
|
|
- |
|
|
if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.6" ] || [ ${GHCVER%.*} = "7.4" ] ; then
|
|
cabal install --constraint="optparse-applicative < $VERSION"
|
|
optparse-applicative-tests
|
|
fi |