on cale- help sign in
reflex/.travis.yml
24 lines 1.1 kB history raw
1sudo: false
2before_install:
3 - travis_retry cabal-$CABALVER update
4 - export PATH=/opt/ghc/$GHCVER/bin:/opt/happy/1.19.5/bin:/opt/alex/3.1.4/bin:$PATH
5install:
6 - travis_retry cabal-$CABALVER install --only-dependencies -j --enable-tests
7script:
8 - cabal-$CABALVER configure -v2 --enable-tests
9 - cabal-$CABALVER build
10 - cabal-$CABALVER test
11 - cabal-$CABALVER sdist # tests that a source-distribution can be generated
12# Check that the resulting source distribution can be built & installed.
13# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
14# `cabal install --force-reinstalls dist/*-*.tar.gz`
15 - SRC_TGZ=$(cabal-$CABALVER info . | awk '{print $2;exit}').tar.gz &&
16 (cd dist && cabal-$CABALVER install --force-reinstalls "$SRC_TGZ")
18matrix:
19 include:
20 - env: CABALVER=1.18 GHCVER=7.8.4
21 addons: {apt: {packages: [cabal-install-1.18, ghc-7.8.4, alex-3.1.4, happy-1.19.5], sources: [hvr-ghc]}}
22 - env: CABALVER=1.22 GHCVER=7.10.1
23 addons: {apt: {packages: [cabal-install-1.22, ghc-7.10.1, alex-3.1.4, happy-1.19.5],sources: [hvr-ghc]}}
24 fast_finish: true