git.iko.soy/typeable/swagger2
on v1.2.1 help sign in
typeable/swagger2/.travis.yml
41 lines 1.8 kB history raw
1language: c
3# explicitly request container-based infrastructure
4sudo: false
6matrix:
7 include:
8 - env: CABALVER=1.18 GHCVER=7.8.4 HAPPYVER=1.19.4
9 addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,happy-1.19.4], sources: [hvr-ghc]}}
10 - env: CABALVER=1.22 GHCVER=7.10.1 HAPPYVER=1.19.5
11 addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1,happy-1.19.5],sources: [hvr-ghc]}}
12 - env: CABALVER=head GHCVER=head HAPPYVER=head
13 addons: {apt: {packages: [cabal-install-head,ghc-head,happy-head], sources: [hvr-ghc]}}
15 allow_failures:
16 - env: CABALVER=1.18 GHCVER=7.8.4 HAPPYVER=1.19.4
17 - env: CABALVER=head GHCVER=head HAPPYVER=head
19before_install:
20 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH:/opt/happy/$HAPPYVER/bin
22install:
23 - cabal --version
24 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
25 - travis_retry cabal update
26 - cabal install --only-dependencies --enable-tests --enable-benchmarks
28# 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.
29script:
30 - if [ -f configure.ac ]; then autoreconf -i; fi
31 - cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
32 - cabal build --ghc-options="-O0" # this builds all libraries and executables (including tests/benchmarks)
33 - cabal test
34 - cabal check
35 - cabal sdist # tests that a source-distribution can be generated
37# Check that the resulting source distribution can be built & installed.
38# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
39# `cabal install --force-reinstalls dist/*-*.tar.gz`
40 - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
41 (cd dist && cabal install --force-reinstalls "$SRC_TGZ")