on master help sign in
Travis scripts
0bcecddIndex Int
.travis.yml+3−4
@@ -2,7 +2,7 @@ sudo: false
2
2
3env:
3env:
4 - GHCVER=7.8.4 STACK_YAML=stack-ghc-7.8.4.yaml
4 - 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"
6
6
7cache:
7cache:
8 directories:
8 directories:
@@ -20,11 +20,10 @@ install:
20 - stack install --only-dependencies --no-terminal
20 - stack install --only-dependencies --no-terminal
21
21
22script:
22script:
23− - stack test :regression --coverage --no-terminal
23+ - travis/test.sh
24
24
25after_script:
25after_script:
26− - stack install stack-hpc-coveralls
26+ - travis/shc.sh
27− - shc ether regression
28
27
29addons:
28addons:
30 apt:
29 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