-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
46 lines (41 loc) · 1.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
env:
- GHCVER=7.6.3
- GHCVER=7.8.3
before_install:
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install cabal-install-1.20 ghc-$GHCVER happy
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
install:
- cabal-1.20 update
- travis_retry sudo apt-get -q -y install hlint || cabal-1.20 install hlint
- cabal-1.20 install --only-dependencies --enable-tests --enable-benchmarks
script:
- hlint . --ignore="Parse error"
- cabal-1.20 configure --enable-tests --enable-benchmarks --enable-library-coverage -v2
- cabal-1.20 build
- |
if [ $GHCVER = "7.8.3" ]; then
cabal-1.20 test --show-details=always
else
dist/build/run-cabal-test/run-cabal-test --cabal-name=cabal-1.20 --show-details=always
fi
- cabal-1.20 check
- cabal-1.20 sdist
- export SRC_TGZ=$(cabal-1.20 info . | awk '{print $2 ".tar.gz";exit}') ;
(cd dist/;
if [ -f "$SRC_TGZ" ]; then
cabal-1.20 install "$SRC_TGZ";
else
echo "expected '$SRC_TGZ' not found";
exit 1;
fi)
after_script:
- dist/build/codecov-haskell/codecov-haskell test-all --exclude-dir=test --display-report --print-response
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/3ff64a7879ffa1a444b6
on_success: change
on_failure: always
on_start: false