File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ image : haskell:9.6.7
2+
3+ variables :
4+ STACK_ROOT : " ${CI_PROJECT_DIR}/.stack"
5+
6+
7+ cache : &global_cache
8+ paths :
9+ - .stack
10+ - .stack-work
11+
12+ before_script :
13+ - stack config set system-ghc --global true
14+
15+ build :
16+ stage : build
17+ tags : ["GitlabResearch"]
18+ script :
19+ - rm -rf .stack-work/install/*/*/*/bin
20+ - stack build --no-terminal --coverage --test --bench --no-run-tests --no-run-benchmarks
21+ after_script :
22+ - rm -rf ./bin
23+ - mv .stack-work/install/*/*/*/bin ./bin
24+ artifacts :
25+ paths :
26+ - " bin/"
27+
28+ test :
29+ stage : test
30+ tags : ["GitlabResearch"]
31+ script :
32+ - rm -rf .stack-work/install/*/*/*/hpc
33+ - stack --no-terminal test --coverage
34+ coverage : ' /(\d+)% top-level declarations used/'
35+ after_script :
36+ - rm -rf ./hpc
37+ - mv .stack-work/install/*/*/*/hpc ./hpc
38+ artifacts :
39+ when : always
40+ paths :
41+ - " hpc/"
42+ cache :
43+ << : *global_cache
44+ policy : pull
45+
46+ hlint :
47+ image : debian:stable
48+ tags : ["GitlabResearch"]
49+ before_script :
50+ - apt-get update -yqq
51+ - apt-get install -y curl
52+ stage : build
53+ script :
54+ - curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s .
55+ cache :
56+ policy : pull
You can’t perform that action at this time.
0 commit comments