on master help sign in
Travis scripts
commit0bcecdddef24f244e5d1e8e9eca860c3661aeb66 authorIndex Int <vlad.z.4096@gmail.com> dateTue 26 Jan 2016, 17:15 (11 years ago) parent589c2ed
3 files changed+14−4
.travis.yml+3−4 travis/shc.sh+4 travis/test.sh+7
.travis.yml+3−4
@@ -2,7 +2,7 @@ sudo: false
22
33env:
44 - GHCVER=7.8.4 STACK_YAML=stack-ghc-7.8.4.yaml
5− - GHCVER=7.10.3 STACK_YAML=stack.yaml
5+ - GHCVER=7.10.3 STACK_YAML=stack.yaml COVERAGE="YES"
66
77cache:
88 directories:
@@ -20,11 +20,10 @@ install:
2020 - stack install --only-dependencies --no-terminal
2121
2222script:
23− - stack test :regression --coverage --no-terminal
23+ - travis/test.sh
2424
2525after_script:
26− - stack install stack-hpc-coveralls
27− - shc ether regression
26+ - travis/shc.sh
2827
2928addons:
3029 apt:
travis/shc.shnew file+4
@@ -0,0 +1,4 @@
1+if [ -n "$COVERAGE" ]; then
2+ curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.3.0/shc-linux-x64-7.10.2.tar.bz2 | tar -xvj
3+ ./shc ether regression
4+fi
travis/test.shnew file+7
@@ -0,0 +1,7 @@
1+if [ -n "$COVERAGE" ]; then
2+ COVERAGE_OPT="--coverage"
3+fi
4+
5+echo "COVERAGE_OPT=$COVERAGE_OPT"
6+
7+stack test :regression $COVERAGE_OPT --no-terminal