haskell-relational-record/.travis.yml

82 lines
3.2 KiB
YAML
Raw Normal View History

2016-06-18 15:11:09 +03:00
language: c
sudo: false
2016-06-18 15:11:09 +03:00
cache:
directories:
- $HOME/.cabsnap
- $HOME/.cabal/packages
2017-02-01 11:59:45 +03:00
- $HOME/.stack
2016-06-18 15:11:09 +03:00
before_cache:
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.tar
2017-02-22 01:53:08 +03:00
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.tar.gz
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.tar.etag
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.cache
2016-06-18 15:11:09 +03:00
matrix:
include:
# - env: STACK_RESOLVER=lts-8.8
# addons: {apt: {packages: [libgmp-dev]}}
# - env: STACK_RESOLVER=lts-7.20
# addons: {apt: {packages: [libgmp-dev]}}
2017-02-21 19:20:55 +03:00
- env: GHCVER=8.0.1 CABALVER=1.24 CABAL_JOBS=-j2
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1], sources: [hvr-ghc]}}
- env: GHCVER=7.6.3 CABALVER=1.16
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3], sources: [hvr-ghc]}}
- env: DEBIANVER=wheezy GHCVER=7.4.1 CABALVER=1.16 NO_CABAL_CACHE=1
addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.1], sources: [hvr-ghc]}}
- env: GHCVER=7.10.3 CABALVER=1.22
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3], sources: [hvr-ghc]}}
2017-02-21 19:20:55 +03:00
- env: GHCVER=7.8.4 CABALVER=1.18 CABAL_JOBS=-j2
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
- env: GHCVER=7.4.1 CABALVER=1.16
2016-06-19 04:27:42 +03:00
addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.1], sources: [hvr-ghc]}}
- env: GHCVER=7.4.2 CABALVER=1.16
2017-02-01 11:59:45 +03:00
addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.2], sources: [hvr-ghc]}}
- env: GHCVER=7.6.1 CABALVER=1.16
2016-06-18 15:11:09 +03:00
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.1], sources: [hvr-ghc]}}
2017-02-01 11:59:45 +03:00
- env: GHCVER=7.6.2 CABALVER=1.16
2016-06-18 15:11:09 +03:00
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.2], sources: [hvr-ghc]}}
2017-02-21 19:20:55 +03:00
- env: GHCVER=7.8.1 CABALVER=1.18 CABAL_JOBS=-j2
2016-06-18 15:11:09 +03:00
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.1], sources: [hvr-ghc]}}
2017-02-21 19:20:55 +03:00
- env: GHCVER=7.8.2 CABALVER=1.18 CABAL_JOBS=-j2
2016-06-18 15:11:09 +03:00
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.2], sources: [hvr-ghc]}}
2017-02-21 19:20:55 +03:00
- env: GHCVER=7.8.3 CABALVER=1.18 CABAL_JOBS=-j2
2016-06-18 15:11:09 +03:00
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.3], sources: [hvr-ghc]}}
## parallel is slower for 7.10.x ??
- env: GHCVER=7.10.1 CABALVER=1.22
2016-06-19 04:26:13 +03:00
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1], sources: [hvr-ghc]}}
- env: GHCVER=7.10.2 CABALVER=1.22
2016-06-19 04:26:13 +03:00
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.2], sources: [hvr-ghc]}}
2016-06-18 15:11:09 +03:00
2015-01-03 17:33:38 +03:00
before_install:
2017-02-01 11:59:45 +03:00
## - cat /proc/cpuinfo
- if [ x"$STACK_RESOLVER" != x ];
then
./travis-CI/stack/before-install.sh ;
export PATH=$HOME/.local/bin:$PATH ;
export STACK_YAML=stack-travis.yaml ;
else
export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH ;
fi
2016-06-18 15:11:09 +03:00
install:
2017-02-01 11:59:45 +03:00
- if [ x"$STACK_RESOLVER" != x ];
2016-06-18 15:11:09 +03:00
then
2017-02-01 11:59:45 +03:00
./travis-CI/stack/install.sh ;
else
./travis-CI/cabal-hvr-ghc/install.sh ;
2016-06-18 15:11:09 +03:00
fi
# Here starts the actual work to be performed for the package under test;
# any command which exits with a non-zero exit code causes the build to fail.
script:
2017-02-01 11:59:45 +03:00
- if [ x"$STACK_RESOLVER" != x ];
then
./travis-CI/stack/script.sh ;
else
./travis-CI/cabal-hvr-ghc/script.sh ;
fi
2016-06-18 15:11:09 +03:00
# EOF