git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #717 from purescript/697

Disable library coverage for tag builds

commit4a52e0a1137399630d371c255c831668641cfa3b authorPhil Freeman <paf31@cantab.net> dateMon 17 Nov 2014, 17:18 (12 years ago) parentde7c1f149e55c6
3 files changed+20−3
.travis.yml+2−3 travis-after-script.sh+7 travis-script.sh+11
.travis.yml+2−3
@@ -1,10 +1,9 @@
11language: haskell
22ghc: 7.8
33script:
4− - cabal configure --enable-tests --enable-library-coverage -v2 && cabal build && cabal test
4+ - ./travis-script.sh
55after_script:
6− - cabal install hpc-coveralls
7− - hpc-coveralls --exclude-dir=tests tests
6+ - ./travis-after-script.sh
87notifications:
98 email: true
109before_deploy: "./bundle/build.sh linux64"
travis-after-script.shnew file+7
@@ -0,0 +1,7 @@
1+set -e
2+
3+if [ -z $( git describe --tags --exact-match 2>/dev/null ) ]
4+then
5+ cabal install hpc-coveralls
6+ hpc-coveralls --exclude-dir=tests tests
7+fi
travis-script.shnew file+11
@@ -0,0 +1,11 @@
1+set -e
2+
3+if [ -z $( git describe --tags --exact-match 2>/dev/null ) ]
4+then
5+ cabal configure --enable-tests --enable-library-coverage -v2
6+else
7+ cabal configure --enable-tests -v2
8+fi
9+
10+cabal build
11+cabal test