git.iko.soy/typeable/file-embed
on master help sign in
Add .travis.yml
commitf5500ca9f7bb77784dd41b7933c7d1267f53d9a6 authorOleg Grenrus <oleg.grenrus@iki.fi> dateThu 13 Aug 2015, 23:12 (11 years ago) parentc382a73
1 file changed+60
.travis.yml+60
.travis.ymlnew file+60
@@ -0,0 +1,60 @@
1+# This file has been generated
2+language: c
3+sudo: false
4+
5+matrix:
6+ include:
7+ # Have to use newer cabal, 1.16 passes -XHaskell98 to GHC
8+ - env: CABALVER=1.22 GHCVER=6.12.3
9+ addons: {apt: {packages: [cabal-install-1.22,ghc-6.12.3], sources: [hvr-ghc]}}
10+ - env: CABALVER=1.16 GHCVER=7.0.4
11+ addons: {apt: {packages: [cabal-install-1.16,ghc-7.0.4], sources: [hvr-ghc]}}
12+ - env: CABALVER=1.16 GHCVER=7.2.2
13+ addons: {apt: {packages: [cabal-install-1.16,ghc-7.2.2], sources: [hvr-ghc]}}
14+ - env: CABALVER=1.16 GHCVER=7.4.2
15+ addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.2], sources: [hvr-ghc]}}
16+ - env: CABALVER=1.16 GHCVER=7.6.3
17+ addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3], sources: [hvr-ghc]}}
18+ - env: CABALVER=1.18 GHCVER=7.8.4
19+ addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
20+ - env: CABALVER=1.22 GHCVER=7.10.1
21+ addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.1], sources: [hvr-ghc]}}
22+ - env: CABALVER=head GHCVER=head
23+ addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
24+
25+ allow_failures:
26+ - env: CABALVER=head GHCVER=head
27+
28+before_install:
29+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
30+
31+install:
32+ - cabal --version
33+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
34+ - travis_retry cabal update
35+ - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
36+ - if [ $GHCVER = "6.12.3" ]; then
37+ cabal install --only-dependencies;
38+ else
39+ cabal install --only-dependencies --enable-tests --enable-benchmarks;
40+ fi
41+
42+script:
43+ - if [ -f configure.ac ]; then autoreconf -i; fi
44+ - if [ $GHCVER = "6.12.3" ]; then
45+ cabal configure -v2;
46+ else
47+ cabal configure --enable-tests --enable-benchmarks -v2;
48+ fi
49+ - cabal build # this builds all libraries and executables (including tests/benchmarks)
50+ - if [ $GHCVER != "6.12.3" ]; then cabal test; fi
51+ - cabal check
52+ - cabal sdist # tests that a source-distribution can be generated
53+
54+# Check that the resulting source distribution can be built & installed.
55+# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
56+# `cabal install --force-reinstalls dist/*-*.tar.gz`
57+ - SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz &&
58+ (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
59+
60+# EOF