-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
23 lines (22 loc) · 872 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dependencies:
cache_directories:
- "~/.stack"
- ".stack-work"
pre:
- curl -L https://github.com/commercialhaskell/stack/releases/download/v1.0.4/stack-1.0.4-linux-x86_64.tar.gz | tar zx -C /tmp
- sudo mv /tmp/stack-1.0.4-linux-x86_64/stack /usr/bin
override:
- stack setup
- rm -fr $(stack path --dist-dir) $(stack path --local-install-root)
- stack install hlint packdeps cabal-install
- stack build --fast
- stack build --fast --pedantic --haddock --test --no-run-tests --no-haddock-deps
test:
override:
- stack test
- git ls-files | grep '\.l\?hs$' | xargs stack exec -- hlint -X QuasiQuotes "$@"
- stack exec -- cabal update
- stack exec --no-ghc-package-path -- cabal install --only-d --dry-run --reorder-goals
- stack exec -- packdeps *.cabal || true
- stack exec -- cabal check
- stack sdist