mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-30 03:34:16 +03:00
a006d1bc70
* Added timestamp * Update test to fix issue * Update CHANGELOG and cabal file * Update installed package with apt
49 lines
1.6 KiB
YAML
49 lines
1.6 KiB
YAML
language: c
|
|
|
|
sudo: false
|
|
|
|
services:
|
|
- docker
|
|
|
|
cache:
|
|
directories:
|
|
- ~/.ghc
|
|
- ~/.cabal
|
|
|
|
matrix:
|
|
include:
|
|
- env: CABALVER=1.24 GHCVER=7.10.3
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-7.10.3,zsh],sources: [hvr-ghc]}}
|
|
- env: CABALVER=1.24 GHCVER=8.0.2
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,zsh], sources: [hvr-ghc]}}
|
|
- env: CABALVER=2.0 GHCVER=8.2.2
|
|
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,zsh], sources: [hvr-ghc]}}
|
|
- env: CABALVER=2.2 GHCVER=8.4.4
|
|
addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.4,zsh], sources: [hvr-ghc]}}
|
|
- env: CABALVER=2.4 GHCVER=8.6.3
|
|
addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.3,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
|
|
- cabal install --only-dependencies --enable-tests
|
|
|
|
script:
|
|
- cabal configure --enable-tests -v2 -f dev
|
|
- cabal build
|
|
- cabal test --show-details=always
|
|
- 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
|