mirror of
https://github.com/typeable/file-embed.git
synced 2024-09-11 07:45:30 +03:00
53 lines
2.1 KiB
YAML
53 lines
2.1 KiB
YAML
# This file has been generated
|
|
language: c
|
|
sudo: false
|
|
|
|
matrix:
|
|
include:
|
|
# Have to use newer cabal, 1.16 passes -XHaskell98 to GHC
|
|
- env: CABALVER=1.22 GHCVER=6.12.3
|
|
addons: {apt: {packages: [cabal-install-1.22,ghc-6.12.3], sources: [hvr-ghc]}}
|
|
- env: CABALVER=1.16 GHCVER=7.0.4
|
|
addons: {apt: {packages: [cabal-install-1.16,ghc-7.0.4], sources: [hvr-ghc]}}
|
|
- env: CABALVER=1.16 GHCVER=7.2.2
|
|
addons: {apt: {packages: [cabal-install-1.16,ghc-7.2.2], sources: [hvr-ghc]}}
|
|
- env: CABALVER=1.16 GHCVER=7.4.2
|
|
addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.2], sources: [hvr-ghc]}}
|
|
- env: CABALVER=1.16 GHCVER=7.6.3
|
|
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3], sources: [hvr-ghc]}}
|
|
- env: CABALVER=1.18 GHCVER=7.8.4
|
|
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
|
|
- env: CABALVER=1.22 GHCVER=7.10.1
|
|
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1], sources: [hvr-ghc]}}
|
|
- env: CABALVER=head GHCVER=head
|
|
addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
|
|
|
|
allow_failures:
|
|
- env: CABALVER=head GHCVER=head
|
|
|
|
before_install:
|
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
|
|
|
install:
|
|
- cabal --version
|
|
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
|
- travis_retry cabal update
|
|
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
|
- cabal install --only-dependencies --enable-tests --enable-benchmarks;
|
|
|
|
script:
|
|
- if [ -f configure.ac ]; then autoreconf -i; fi
|
|
- cabal configure --enable-tests --enable-benchmarks -v2;
|
|
- cabal build # this builds all libraries and executables (including tests/benchmarks)
|
|
- cabal test
|
|
- cabal check
|
|
- cabal sdist # tests that a source-distribution can be generated
|
|
|
|
# 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 &&
|
|
(cd dist && cabal install --force-reinstalls "$SRC_TGZ")
|
|
|
|
# EOF
|