-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
56 lines (49 loc) · 1.13 KB
/
.gitlab-ci.yml
File metadata and controls
56 lines (49 loc) · 1.13 KB
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
image: haskell:9.6.7
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
cache: &global_cache
paths:
- .stack
- .stack-work
before_script:
- stack config set system-ghc --global true
build:
stage: build
tags: ["GitlabResearch"]
script:
- rm -rf .stack-work/install/*/*/*/bin
- stack build --no-terminal --coverage --test --bench --no-run-tests --no-run-benchmarks
after_script:
- rm -rf ./bin
- mv .stack-work/install/*/*/*/bin ./bin
artifacts:
paths:
- "bin/"
test:
stage: test
tags: ["GitlabResearch"]
script:
- rm -rf .stack-work/install/*/*/*/hpc
- stack --no-terminal test --coverage
coverage: '/(\d+)% top-level declarations used/'
after_script:
- rm -rf ./hpc
- mv .stack-work/install/*/*/*/hpc ./hpc
artifacts:
when: always
paths:
- "hpc/"
cache:
<<: *global_cache
policy: pull
hlint:
image: debian:stable
tags: ["GitlabResearch"]
before_script:
- apt-get update -yqq
- apt-get install -y curl
stage: build
script:
- curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s .
cache:
policy: pull