servant/.travis.yml

36 lines
825 B
YAML
Raw Normal View History

2014-12-02 17:24:10 +01:00
language: haskell
2014-12-02 17:45:24 +01:00
ghc:
- 7.8
2015-04-13 15:12:33 +02:00
before_install:
- cabal update
- cabal sandbox init
install:
- cabal install --only-dependencies --enable-tests
2015-01-29 01:18:16 +01:00
script:
2015-02-19 20:32:05 +01:00
- cabal configure --enable-tests --enable-library-coverage && cabal build && cabal test
2015-01-29 01:18:16 +01:00
- cabal check
- cabal sdist
2015-02-19 20:32:05 +01:00
after_script:
2015-02-21 17:41:30 +01:00
- |
if [ "$TRAVIS_PULL_REQUEST" -eq "$TRAVIS_PULL_REQUEST" ] 2>/dev/null || [ "$TRAVIS_BRANCH" == "master" ] ; then
cabal install hpc-coveralls
hpc-coveralls --exclude-dir=test spec doctests
2015-02-21 17:41:30 +01:00
fi
2015-02-19 20:32:05 +01:00
2014-12-02 17:24:10 +01:00
notifications:
irc:
channels:
- "irc.freenode.org#servant"
template:
- "%{repository}#%{build_number} - %{commit} on %{branch} by %{author}: %{message}"
- "Build details: %{build_url} - Change view: %{compare_url}"
skip_join: true
on_success: change
on_failure: always