This repository has been archived by the owner on May 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
105 lines (98 loc) · 2.57 KB
/
.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
stages:
- test_build
- post_build_test
- deploy
test:
image: fpco/stack-build:lts-10.3
stage: test_build
script:
- stack setup --system-ghc
- stack test --system-ghc --coverage --test-arguments "--color always --quickcheck-tests 1000"
- mkdir -p ./public/coverage
- cp -r $(stack path --system-ghc --local-hpc-root)/* ./public/coverage
coverage: '/(\d+)\% expressions used/'
cache:
key: test
paths:
- .stack
- .stack-work
artifacts:
paths:
- public/
expire_in: 1 hour
bench:
image: fpco/stack-build:lts-10.3
stage: test_build
script:
- stack setup --system-ghc
- mkdir -p ./public/benchmark
- stack bench --system-ghc --benchmark-arguments "-o ./public/benchmark/index.html"
cache:
key: bench
paths:
- .stack
- .stack-work
artifacts:
paths:
- public/
expire_in: 1 hour
build-cpp:
image: fpco/stack-build:lts-10.3
stage: test_build
script:
- stack setup --system-ghc
- mkdir build
- stack install htar9-asm:htar9-asm-exe --system-ghc --local-bin-path build
cache:
key: build
paths:
- .stack
- .stack-work
artifacts:
paths:
- build/
build-hs:
image: fpco/stack-build:lts-10.3
stage: test_build
script:
- stack setup --system-ghc
- mkdir build
- stack install htar9-asm:htar9-asm-hs-exe --system-ghc --local-bin-path build
cache:
key: build
paths:
- .stack
- .stack-work
artifacts:
paths:
- build/
build-isa-pdf:
image: aergus/latex
stage: test_build
script:
- cd docs
- latexmk -lualatex -interaction=nonstopmode isa.tex
- cd ..
- mkdir public
- mv ./docs/isa.pdf ./public
artifacts:
paths:
- public/
expire_in: 1 hour
pages:
# stage precedence means previous stage artifacts will be downloaded
stage: deploy
script:
echo "some script to run to appease gitlab CI"
# TODO: get haddock working on haddocking my code not all but my code
#- stack haddock htar9-asm --haddock-arguments "--odir=${CI_PROJECT_DIR}/public/docs"
#- stack ide targets --system-ghc
#- echo ${CI_COMMIT_REF_SLUG}
only:
refs:
- master
artifacts:
paths:
- public/