2015-11-21 07:15:55 -08:00
|
|
|
# This file has been generated -- see https://github.com/hvr/multi-ghc-travis
|
|
|
|
language: c
|
2015-11-20 20:31:04 -08:00
|
|
|
sudo: false
|
2015-11-21 07:15:55 -08:00
|
|
|
|
2015-10-08 13:39:32 -07:00
|
|
|
cache:
|
|
|
|
directories:
|
2015-11-21 07:15:55 -08:00
|
|
|
- $HOME/.cabsnap
|
|
|
|
- $HOME/.cabal/packages
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
|
|
|
|
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.tar
|
2015-10-08 13:39:32 -07:00
|
|
|
|
2015-04-25 03:29:42 -07:00
|
|
|
matrix:
|
2015-10-08 13:39:32 -07:00
|
|
|
include:
|
2015-11-21 07:15:55 -08:00
|
|
|
- env: CABALVER=1.16 GHCVER=7.4.2 GHCOPTS=-Werror
|
2015-11-09 10:07:52 -08:00
|
|
|
compiler: ": #GHC 7.4.2"
|
2015-11-21 07:15:55 -08:00
|
|
|
addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.2], sources: [hvr-ghc]}}
|
|
|
|
- env: CABALVER=1.16 GHCVER=7.6.3 GHCOPTS=-Werror
|
2015-10-08 13:39:32 -07:00
|
|
|
compiler: ": #GHC 7.6.3"
|
2015-11-21 07:15:55 -08:00
|
|
|
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3], sources: [hvr-ghc]}}
|
|
|
|
- env: CABALVER=1.18 GHCVER=7.8.4 GHCOPTS=-Werror
|
2015-10-08 13:39:32 -07:00
|
|
|
compiler: ": #GHC 7.8.4"
|
2015-11-21 07:15:55 -08:00
|
|
|
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
|
|
|
|
- env: CABALVER=1.22 GHCVER=7.10.2 GHCOPTS=-Werror
|
2015-10-08 13:39:32 -07:00
|
|
|
compiler: ": #GHC 7.10.2"
|
2015-11-21 07:15:55 -08:00
|
|
|
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.2], sources: [hvr-ghc]}}
|
2015-10-08 13:39:32 -07:00
|
|
|
|
2013-07-13 15:15:43 -07:00
|
|
|
before_install:
|
2015-11-21 07:15:55 -08:00
|
|
|
- unset CC
|
|
|
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
2014-04-09 11:36:50 -07:00
|
|
|
|
|
|
|
install:
|
2015-11-21 07:15:55 -08:00
|
|
|
- cabal --version
|
|
|
|
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
|
|
|
- travis_retry cabal update -v
|
|
|
|
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
2015-11-21 07:45:56 -08:00
|
|
|
# temporary: install unreleased dependencies:
|
|
|
|
- for repo in pandoc-types texmath;
|
|
|
|
do
|
|
|
|
git clone https://github.com/jgm/$repo;
|
|
|
|
done;
|
2015-11-21 07:15:55 -08:00
|
|
|
|
|
|
|
# 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.
|
2013-07-13 15:15:43 -07:00
|
|
|
script:
|
2015-11-21 09:15:34 -08:00
|
|
|
- cabal install --ghc-options=$GHCOPTS --enable-tests --enable-benchmarks -v pandoc-types texmath .
|
2015-11-21 07:15:55 -08:00
|
|
|
- cabal test
|
|
|
|
- cabal check
|
|
|
|
# Test that a source-distribution can be generated
|
|
|
|
# (with cabal >= 1.18 'cabal sdist' would work too):
|
|
|
|
- ./dist/setup/setup sdist
|
|
|
|
|
|
|
|
# Check that the resulting source distribution can be built & installed.
|
|
|
|
# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
|
|
|
|
# `cabal install --force-reinstalls dist/*-*.tar.gz`
|
|
|
|
- SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
|
2015-11-21 08:45:38 -08:00
|
|
|
(cd dist && cabal install --force-reinstalls "$SRC_TGZ")
|
2015-11-21 07:15:55 -08:00
|
|
|
|
|
|
|
# EOF
|