]> Git — Sourcephile - gargantext.git/blob - .gitlab-ci.yml
[VERSION] +1 to 0.0.1.7.6
[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: haskell:8
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 - make setup
29 - make build
30
31 # TOOO
32 #unit-test:
33 # stage: test
34 # script:
35 # - make test-unit
36 #
37 #int-test:
38 # stage: test
39 # script:
40 # - make test-int
41 #
42 #e2e-test:
43 # stage: test
44 # script:
45 # - make test-e2e
46 #
47
48 # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help:
49 #
50 #build:
51 # stage: build
52 # script:
53 # # Clear out cache files
54 # - rm -rf .stack
55 # - rm -rf .stack-work
56 # - stack setup --system-ghc
57 # - stack install --local-bin-path target --system-ghc
58
59
60
61