]> Git — Sourcephile - gargantext.git/blob - .gitlab-ci.yml
[ihaskell] some development towards codebook integration
[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 - deps
18 - docs
19 - test
20
21 deps:
22 cache:
23 # cache per branch name
24 # key: ${CI_COMMIT_REF_SLUG}
25 paths:
26 - .stack
27 - .stack-root/
28 - .stack-work/
29 - target
30 script:
31 - stack build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast
32
33 docs:
34 cache:
35 # cache per branch name
36 # key: ${CI_COMMIT_REF_SLUG}
37 paths:
38 - .stack
39 - .stack-root/
40 - .stack-work/
41 - target
42 script:
43 - stack build --no-terminal --haddock --no-haddock-deps --fast
44 - cp -R "$(stack path --local-install-root)"/doc ./output
45 artifacts:
46 paths:
47 - ./output
48 expire_in: 1 week
49
50 test:
51 cache:
52 # cache per branch name
53 # key: ${CI_COMMIT_REF_SLUG}
54 paths:
55 - .stack
56 - .stack-root/
57 - .stack-work/
58 - target
59 script:
60 - stack test --no-terminal --fast
61
62 # TOOO
63