-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (51 loc) · 1.13 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
image: nikolaik/python-nodejs:python3.10-nodejs18
include:
- project: geoplateforme/templates
ref: main
file:
- "ci/docker-v5.yml"
- "ci/chart-v2.yml"
- "ci/versioning.yml"
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- when: always
cache:
paths:
- node_modules/
lint:
script:
- yarn --frozen-lockfile
- yarn lint
test:
before_script:
- apt-get update && apt-get install -y p7zip-full
script:
- yarn --frozen-lockfile
- yarn test-lcov
artifacts:
paths:
- coverage/lcov.info
expire_in: 1 week
test:recette:
script:
- yarn --frozen-lockfile
- yarn test-recette
when: manual
pages:
stage: deploy
when: manual
script:
- python -m pip install -U virtualenv
- virtualenv venv
- source venv/bin/activate
- python -m pip install -U pip
- python -m pip install -U setuptools wheel
- python -m pip install -U -r requirements-mkdocs.txt
- mkdocs build --strict --verbose -d public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH