]> Git — Sourcephile - gargantext.git/blob - .gitlab-ci.yml
[FIX] gource viz
[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 # cache per branch name
22 # key: ${CI_COMMIT_REF_SLUG}
23 paths:
24 - .stack-root/
25 - .stack-work/
26 script:
27 - stack build --no-terminal --haddock --no-haddock-deps --fast
28 - cp -R "$(stack path --local-install-root)"/doc ./output
29 artifacts:
30 paths:
31 - ./output
32 expire_in: 1 week
33
34 test:
35 cache:
36 # cache per branch name
37 # key: ${CI_COMMIT_REF_SLUG}
38 paths:
39 - .stack-root/
40 - .stack-work/
41 script:
42 - stack test --no-terminal --fast
43
44 # TOOO
45 #unit-test:
46 # stage: test
47 # script:
48 # - make test-unit
49 #
50 #int-test:
51 # stage: test
52 # script:
53 # - make test-int
54 #
55 #e2e-test:
56 # stage: test
57 # script:
58 # - make test-e2e
59 #
60
61 # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help:
62 #
63 #build:
64 # stage: build
65 # script:
66 # # Clear out cache files
67 # - rm -rf .stack
68 # - rm -rf .stack-work
69 # - stack setup --system-ghc
70 # - stack install --local-bin-path target --system-ghc
71
72
73
74