Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: haskell
ghc: 7.8
script:
- cabal configure --enable-tests --enable-library-coverage -v2 && cabal build && cabal test
- ./travis-script.sh
after_script:
- cabal install hpc-coveralls
- hpc-coveralls --exclude-dir=tests tests
- ./travis-after-script.sh
notifications:
email: true
before_deploy: "./bundle/build.sh linux64"
Expand Down
7 changes: 7 additions & 0 deletions travis-after-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -e

if [ -z $( git describe --tags --exact-match 2>/dev/null ) ]
then
cabal install hpc-coveralls
hpc-coveralls --exclude-dir=tests tests
fi
11 changes: 11 additions & 0 deletions travis-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set -e

if [ -z $( git describe --tags --exact-match 2>/dev/null ) ]
then
cabal configure --enable-tests --enable-library-coverage -v2
else
cabal configure --enable-tests -v2
fi

cabal build
cabal test