-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (23 loc) · 833 Bytes
/
.travis.yml
File metadata and controls
31 lines (23 loc) · 833 Bytes
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
language: haskell
dist: xenial
os: linux
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
ghc:
- "8.6"
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install: stack setup && stack build
# regular stack tests must pass, and so must haddock
script: stack --no-terminal --skip-ghc-check test --coverage && stack haddock
# TODO reimplement code coverage, doesn't work currently
#after_script:
#- stack install codecov-haskell
#- mkdir -p dist/hpc/tix/all
#- cp -r $(stack path --local-hpc-root)/Bogl-Lang/Bogl-Lang-test/* ./dist/hpc/tix/all/
#- codecov-haskell Bogl-Lang