mirror of
https://github.com/ilyakooo0/optparse-applicative.git
synced 2024-11-23 06:36:45 +03:00
3b09d5c9fd
Since tasty depends on optparse-applicative, I've had to move the tests to a separate package to avoid the cyclic dependency. Also, since updates to optparse-applicative might break the build for tasty, the test package does not actually depend on optparse-applicative, but includes its code directly.
28 lines
819 B
YAML
28 lines
819 B
YAML
env:
|
|
- GHCVER=7.4.2
|
|
- GHCVER=7.6.3
|
|
- GHCVER=7.8.3
|
|
|
|
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
|
|
- cabal install --constraint="optparse-applicative < $VERSION"
|
|
- optparse-applicative-tests |