]> Git — Sourcephile - gargantext.git/blob - .gitlab-ci.yml
Merge branch 'dev' into dev-docs-download
[gargantext.git] / .gitlab-ci.yml
1 # Thanks to:
2 # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
3 #
4 #
5 image: cgenie/stack-build:lts-18.18-garg
6 #image: cgenie/nixos-stack:latest
7
8 variables:
9 STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
10 STACK_OPTS: "--system-ghc"
11
12 #before_script:
13 #- apt-get update
14 #- apt-get install make xz-utils
15
16 stages:
17 - docs
18 - test
19
20 docs:
21 cache:
22 # cache per branch name
23 # key: ${CI_COMMIT_REF_SLUG}
24 paths:
25 - .stack
26 - .stack-root/
27 - .stack-work/
28 - target
29 script:
30 - stack build --no-terminal --haddock --no-haddock-deps --fast
31 - cp -R "$(stack path --local-install-root)"/doc ./output
32 artifacts:
33 paths:
34 - ./output
35 expire_in: 1 week
36
37 test:
38 cache:
39 # cache per branch name
40 # key: ${CI_COMMIT_REF_SLUG}
41 paths:
42 - .stack
43 - .stack-root/
44 - .stack-work/
45 - target
46 script:
47 - stack test --no-terminal --fast
48
49 # TOOO