forked from ucsd-progsys/liquidhaskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
56 lines (52 loc) · 2.45 KB
/
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
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
52
53
54
55
56
machine:
#ghc:
# version: 7.10.2
pre:
- sudo add-apt-repository -y ppa:hvr/z3
# - sudo add-apt-repository -y ppa:hvr/ghc
- sudo apt-get -y update
- sudo apt-get -y install z3 # ghc-7.10.3
checkout:
post:
- git submodule sync
# fetch fixpoint pull requests
- sed -i '/fixpoint.git/a fetch = +refs/pull/*/head:refs/remotes/origin/pr/*' .git/modules/liquid-fixpoint/config
- git submodule update --init
- pwd
dependencies:
cache_directories:
- "~/.stack"
- ".stack-work"
pre:
# - curl -sSL https://get.haskellstack.org/ | sh
- curl -SL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar zx -C /tmp
# - 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-*-linux-x86_64/stack /usr/bin
override:
- stack setup
- rm -fr $(stack path --dist-dir) $(stack path --local-install-root)
- stack build liquidhaskell --only-dependencies --test --no-run-tests
compile:
override:
# - stack build liquidhaskell --fast --pedantic --flag liquidhaskell:include --flag liquidhaskell:devel
- stack build liquidhaskell --flag liquidhaskell:include --flag liquidhaskell:devel
- stack build liquidhaskell --flag liquidhaskell:include --flag liquidhaskell:devel --test --no-run-tests
test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/junit
- stack test liquidhaskell:test --flag liquidhaskell:include --flag liquidhaskell:devel --test-arguments="-t 1200s -j2 --xml=$CIRCLE_TEST_REPORTS/junit/main-test-results.xml --liquid-opts='--cores=1'":
timeout: 1800
- stack test liquidhaskell:liquidhaskell-parser --test-arguments="-j2 --xml=$CIRCLE_TEST_REPORTS/junit/parser-test-results.xml":
timeout: 1800
# - 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-dependencies --dry-run --reorder-goals
# - stack exec -- packdeps *.cabal || true
# - stack exec -- cabal check
- stack sdist
post:
- stack haddock liquidhaskell --flag liquidhaskell:-devel --no-haddock-deps --haddock-arguments="--no-print-missing-docs --odir=$CIRCLE_ARTIFACTS"
# - cp -r dist/doc $CIRCLE_ARTIFACTS
- mkdir -p $CIRCLE_TEST_REPORTS/tasty
- cp -r tests/logs/cur $CIRCLE_TEST_REPORTS/tasty/log
# - hpc-coveralls --exclude-dir=tests --repo-token=$COVERALLS_REPO_TOKEN