hapistrano/.travis.yml
Juan Paucar d6bfa5e11b
Add GHC 8.8.1 to the matrix build (#126)
* Add GHC 8.8.1 to the matrix build

* Use cabal 3.0

* Update stackage snapshot, change package creation with cabal 3

* Loose time constraint

* Add hspec discover as a build tool

* Remove dist new folder and ignore it
2019-10-28 11:40:35 -07:00

49 lines
1.6 KiB
YAML

language: c
sudo: false
services:
- docker
cache:
directories:
- ~/.ghc
- ~/.cabal
matrix:
include:
- env: CABALVER=3.0 GHCVER=7.10.3
addons: {apt: {packages: [cabal-install-3.0,ghc-7.10.3,zsh],sources: [hvr-ghc]}}
- env: CABALVER=3.0 GHCVER=8.0.2
addons: {apt: {packages: [cabal-install-3.0,ghc-8.0.2,zsh], sources: [hvr-ghc]}}
- env: CABALVER=3.0 GHCVER=8.2.2
addons: {apt: {packages: [cabal-install-3.0,ghc-8.2.2,zsh], sources: [hvr-ghc]}}
- env: CABALVER=3.0 GHCVER=8.4.4
addons: {apt: {packages: [cabal-install-3.0,ghc-8.4.4,zsh], sources: [hvr-ghc]}}
- env: CABALVER=3.0 GHCVER=8.6.5
addons: {apt: {packages: [cabal-install-3.0,ghc-8.6.5,zsh], sources: [hvr-ghc]}}
- env: CABALVER=3.0 GHCVER=8.8.1
addons: {apt: {packages: [cabal-install-3.0,ghc-8.8.1,zsh], sources: [hvr-ghc]}}
- os: osx
before_install:
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ghc cabal-install zsh; fi
install:
- zsh --version
- cabal --version
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- travis_retry cabal update
script:
- cabal build --enable-tests
- cabal test --enable-tests
- cabal sdist
- cabal haddock | grep "100%" | wc -l | grep "4"
# There is a single Docker image, there are no variants for different versions of GHC
- if [[ "$GHCVER" == "8.0.2" ]]; then docker build . -t hapistrano; docker run --rm hapistrano --version; fi
notifications:
email: false