-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
54 lines (46 loc) · 965 Bytes
/
.gitlab-ci.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
image: haskell:8.6.5
stages:
- build
- test
- deploy
cache:
key: purepur-v1
paths:
- .stack-root
- .stack-work
variables:
LC_ALL: C.UTF-8
STACK_ROOT: $CI_PROJECT_DIR/.stack-root
build-linux:
stage: build
needs: []
script:
- stack build --copy-bins --local-bin-path ./artifacts --flag purepur:static
artifacts:
paths:
- ./artifacts
build-macos:
stage: build
tags: [macOS]
needs: []
script:
- stack build --copy-bins --local-bin-path ./artifacts-macos
artifacts:
paths:
- ./artifacts-macos
allow_failure: true
build-win:
stage: build
tags: [windows]
needs: []
script:
- C:\Users\csicar\AppData\Roaming\local\bin\stack.exe build --copy-bins --local-bin-path ./artifacts-win
artifacts:
paths:
- ./artifacts-win
allow_failure: true
test:
stage: test
needs: []
script:
- stack build --test --no-run-tests --flag purepur:static --haddock --no-haddock-deps