]> Git — Sourcephile - gargantext.git/blob - .gitlab-ci.yml
[CI] remove cache key, as this results in constant rebuilding
[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-17.13-garg
6
7 variables:
8 STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
9 STACK_OPTS: "--system-ghc"
10
11 #before_script:
12 #- apt-get update
13 #- apt-get install make xz-utils
14
15 stages:
16 - docs
17 - test
18
19 docs:
20 cache:
21 paths:
22 - .stack-root/
23 - .stack-work/
24 script:
25 - stack build --no-terminal --haddock --no-haddock-deps --fast
26 - cp -R "$(stack path --local-install-root)"/doc ./output
27 artifacts:
28 paths:
29 - ./output
30 expire_in: 1 week
31
32 test:
33 cache:
34 paths:
35 - .stack-root/
36 - .stack-work/
37 script:
38 - stack test --no-terminal --fast
39
40 # TOOO
41 #unit-test:
42 # stage: test
43 # script:
44 # - make test-unit
45 #
46 #int-test:
47 # stage: test
48 # script:
49 # - make test-int
50 #
51 #e2e-test:
52 # stage: test
53 # script:
54 # - make test-e2e
55 #
56
57 # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help:
58 #
59 #build:
60 # stage: build
61 # script:
62 # # Clear out cache files
63 # - rm -rf .stack
64 # - rm -rf .stack-work
65 # - stack setup --system-ghc
66 # - stack install --local-bin-path target --system-ghc
67
68
69
70