-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
51 lines (47 loc) · 1.37 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
47
48
49
50
51
sudo: false
cache:
directories:
- "$HOME/.stack/"
matrix:
include:
- env: RESOLVER=lts-2
- env: RESOLVER=lts-3
- env: RESOLVER=lts-4
- env: RESOLVER=lts-5
- env: RESOLVER=lts-6
- env: RESOLVER=lts-7
- env: RESOLVER=nightly
allow_failures:
- env: RESOLVER=nightly
addons:
apt:
packages:
- libgmp-dev
before_install:
# stack
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- ./latest $RESOLVER > stack-travis.yaml
- export STACK_YAML=stack-travis.yaml
- stack update
install:
- stack --no-terminal --skip-ghc-check setup
- stack --no-terminal --skip-ghc-check test --only-snapshot
# install stack-hpc-coveralls
- stack --no-terminal --skip-ghc-check install stack-hpc-coveralls || true
script:
- stack --no-terminal --skip-ghc-check test --coverage
- stack --no-terminal --skip-ghc-check sdist
# check that the generated source-distribution can be built & installed
#- export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
# (cd dist/;
# if [ -f "$SRC_TGZ" ]; then
# cabal install --force-reinstalls "$SRC_TGZ";
# else
# echo "expected '$SRC_TGZ' not found";
# exit 1;
# fi)
after_script:
- shc fluent-logger fluent-logger-spec
# EOF