]> Git — Sourcephile - gargantext.git/blob - .gitlab-ci.yml
[test] gitlab ci docker image fix
[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"
9 STACK_OPTS: "--system-ghc"
10
11 cache:
12 paths:
13 - .stack
14 - .stack-work
15 - target
16
17 #before_script:
18 #- apt-get update
19 #- apt-get install make xz-utils
20
21 stages:
22 - build
23 - test
24
25 build:
26 stage: build
27 script:
28 - rm -rf .stack
29 - rm -rf .stack-work
30 - stack build --haddock --no-haddock-deps --fast
31
32 # TOOO
33 #unit-test:
34 # stage: test
35 # script:
36 # - make test-unit
37 #
38 #int-test:
39 # stage: test
40 # script:
41 # - make test-int
42 #
43 #e2e-test:
44 # stage: test
45 # script:
46 # - make test-e2e
47 #
48
49 # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help:
50 #
51 #build:
52 # stage: build
53 # script:
54 # # Clear out cache files
55 # - rm -rf .stack
56 # - rm -rf .stack-work
57 # - stack setup --system-ghc
58 # - stack install --local-bin-path target --system-ghc
59
60
61
62