-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
77 lines (69 loc) · 1.49 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
stages:
- test
- release
unit-test-harvester:
stage: test
image: docker:cli
tags: [shell]
variables:
GIT_STRATEGY: none
resource_group: test
before_script:
- uname -a
- cd harvest-and-collect
- chmod +x run_unit_test.sh
- ls -l
- pwd
script:
- /bin/sh run_unit_test.sh
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
unit-test-api:
stage: test
image: docker:cli
tags: [shell]
variables:
GIT_STRATEGY: none
resource_group: test
before_script:
- uname -a
- cd api-endpoint
- chmod +x run_unit_test.sh
- ls -l
- pwd
script:
- /bin/sh run_unit_test.sh
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
lint-job_harvester:
stage: test
image: python:3.12-bookworm
allow_failure: true
tags: [docker]
before_script:
- uname -a
- python3 --version ; pip3 --version
- pip3 install -r requirements.txt
- cd harvest-and-collect
script:
- pylint harvest_and_collect
lint-job-api:
stage: test
image: python:3.12-bookworm
allow_failure: true
tags: [docker]
before_script:
- uname -a
- python3 --version ; pip3 --version
- pip3 install -r requirements.txt
- cd api-endpoint
script:
- pylint api_worker
release:
image: node:latest
tags: [docker]
stage: release
before_script:
- npm install @semantic-release/git @semantic-release/gitlab
script:
- npx semantic-release
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH