Skip to content

Commit

Permalink
.travis.yml: Re-enable GHC-7.0 and 7.2; add hlint run
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed May 12, 2019
1 parent 9f90e4a commit 82e6c39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Travis job script has been generated by a script via
#
# haskell-ci '--ghc-head' '--tests-jobs' '>=7.4' 'optparse-applicative.cabal'
# haskell-ci '--ghc-head' '--hlint' 'optparse-applicative.cabal'
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
Expand Down Expand Up @@ -45,6 +45,10 @@ matrix:
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.6.3","cabal-install-2.4"]}}
- compiler: ghc-7.4.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.4.2","cabal-install-2.4"]}}
- compiler: ghc-7.2.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.2.2","cabal-install-2.4"]}}
- compiler: ghc-7.0.4
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.0.4","cabal-install-2.4"]}}
- compiler: ghc-head
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-head","cabal-install-head"]}}
env: GHCHEAD=true
Expand Down Expand Up @@ -118,6 +122,7 @@ install:
- cat $CABALHOME/config
- rm -fv cabal.project cabal.project.local cabal.project.freeze
- travis_retry ${CABAL} v2-update -v
- if [ $HCNUMVER -eq 80605 ] ; then ${CABAL} v2-install -w ${HC} -j2 hlint --constraint='hlint ==2.1.*' | color_cabal_output ; fi
# Generate cabal.project
- rm -rf cabal.project cabal.project.local cabal.project.freeze
- touch cabal.project
Expand Down Expand Up @@ -160,6 +165,8 @@ script:
- ${CABAL} v2-build -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
# Testing...
- ${CABAL} v2-test -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
# HLint..
- if [ $HCNUMVER -eq 80605 ] ; then (cd optparse-applicative-* && hlint src) ; fi
# cabal check...
- (cd optparse-applicative-* && ${CABAL} -vnormal check)
# haddock...
Expand All @@ -168,5 +175,5 @@ script:
- rm -f cabal.project.local
- ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks all | color_cabal_output

# REGENDATA ["--ghc-head","--tests-jobs",">=7.4","optparse-applicative.cabal"]
# REGENDATA ["--ghc-head","--hlint","optparse-applicative.cabal"]
# EOF
2 changes: 2 additions & 0 deletions optparse-applicative.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ extra-source-files: CHANGELOG.md
homepage: https://github.com/pcapriotti/optparse-applicative
bug-reports: https://github.com/pcapriotti/optparse-applicative/issues
tested-with:
GHC==7.0.4,
GHC==7.2.2,
GHC==7.4.2,
GHC==7.6.3,
GHC==7.8.4,
Expand Down

0 comments on commit 82e6c39

Please sign in to comment.