-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
63 lines (53 loc) · 1017 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
63 lines (53 loc) · 1017 Bytes
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
# Using the official Python Docker image as default
image: python:3.11
.tests:
stage: Test
script:
- tox -c tox-gitlab.ini
before_script:
- python --version
- uname -a
- apt-get update
- apt-get install -y libldap2-dev libsasl2-dev
- "[ -r requirements.txt ] && pip install -r requirements.txt"
- pip install tox
- mkdir -p build
stages:
- Test
- Publish
unit_test:
extends: .tests
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
paths:
- htmlcov/
unit_test:3.11:
image: python:3.11
extends: .tests
unit_test:3.10:
image: python:3.10
extends: .tests
unit_test:3.12:
image: python:3.12
extends: .tests
pages:
stage: Publish
pages: true
dependencies:
- unit_test
script:
- mkdir -p public
- mv htmlcov public/
artifacts:
paths:
- public/htmlcov
expire_in: 30 days
only:
- master
sast:
stage: Test
artifacts:
paths:
- gl-sast-report.json
include:
- template: Security/SAST.gitlab-ci.yml