mirror of
https://github.com/sol/hpack.git
synced 2024-10-04 11:47:15 +03:00
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
sudo: false
|
|
|
|
language: generic
|
|
|
|
matrix:
|
|
include:
|
|
- env: BUILD=tinc CABALVER=1.22 GHCVER=7.10.3
|
|
compiler: ": #tinc 7.10.3"
|
|
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
|
|
- env: BUILD=tinc CABALVER=1.24 GHCVER=8.0.1
|
|
compiler: ": #tinc 8.0.1"
|
|
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1,happy-1.19.5], sources: [hvr-ghc]}}
|
|
- env: BUILD=tinc CABALVER=2.0 GHCVER=8.2.1
|
|
compiler: ": #tinc 8.2.1"
|
|
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1,happy-1.19.5], sources: [hvr-ghc]}}
|
|
- env: BUILD=stack GHCVER=8.2.1 STACK_YAML=stack.yaml
|
|
compiler: ": #stack 8.2.1"
|
|
addons: {apt: {packages: [ghc-8.2.1,happy-1.19.5], sources: [hvr-ghc]}}
|
|
- env: BUILD=stack STACK_YAML=stack.yaml
|
|
compiler: ": #stack 8.2.1 osx"
|
|
os: osx
|
|
|
|
before_install:
|
|
- unset CC
|
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/happy/1.19.5/bin:$PATH
|
|
- ./.travis-setup.sh
|
|
- ghc --version || stack exec -- ghc --version
|
|
- happy --version || true
|
|
- cabal --version || true
|
|
- stack --version || true
|
|
- tick --version || true
|
|
|
|
install:
|
|
- case "$BUILD" in
|
|
tinc)
|
|
tinc;;
|
|
stack)
|
|
stack --no-terminal test --only-dependencies;;
|
|
esac
|
|
|
|
script:
|
|
- case "$BUILD" in
|
|
tinc)
|
|
cabal configure --enable-tests --ghc-options=-Werror --disable-optimization && cabal build && cabal test;;
|
|
stack)
|
|
stack --no-terminal test --haddock --no-haddock-deps;;
|
|
esac
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.tinc/cache
|
|
- $HOME/.stack
|