on develop help sign in
Add travis support
commitc3b0c0b947b1d041e4a6079ba1e22b61989678ec authorBenno Fünfstück <benno.fuenfstueck@gmail.com> dateMon 13 Jul 2015, 17:35 (11 years ago) parent414f197
1 file changed+28
.travis.yml+28
.travis.ymlnew file+28
@@ -0,0 +1,28 @@
1+sudo: false
2+cache:
3+ directories:
4+ - $HOME/hlint
5+before_install:
6+ - travis_retry cabal-$CABALVER update
7+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.5/bin:/opt/alex/3.1.4/bin:$PATH
8+install:
9+ - travis_retry cabal-$CABALVER install --only-dependencies -j --enable-tests
10+script:
11+ - cabal-$CABALVER configure -v2 --enable-tests
12+ - cabal-$CABALVER build
13+ - cabal-$CABALVER test
14+ - cabal-$CABALVER check
15+ - cabal-$CABALVER sdist # tests that a source-distribution can be generated
16+# Check that the resulting source distribution can be built & installed.
17+# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
18+# `cabal install --force-reinstalls dist/*-*.tar.gz`
19+ - SRC_TGZ=$(cabal-$CABALVER info . | awk '{print $2;exit}').tar.gz &&
20+ (cd dist && cabal-$CABALVER install --force-reinstalls "$SRC_TGZ")
21+
22+matrix:
23+ include:
24+ - env: CABALVER=1.18 GHCVER=7.8.4
25+ addons: {apt: {packages: [cabal-install-1.18, ghc-7.8.4, alex-3.1.4, happy-1.19.5], sources: [hvr-ghc]}}
26+ - env: CABALVER=1.22 GHCVER=7.10.1
27+ addons: {apt: {packages: [cabal-install-1.22, ghc-7.10.1, alex-3.1.4, happy-1.19.5],sources: [hvr-ghc]}}
28+ fast_finish: true