-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
96 lines (85 loc) · 1.86 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
default:
before_script:
image: docker:24.0.7
include:
- template: Code-Quality.gitlab-ci.yml
- template: Security/License-Scanning.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
stages:
- qa
- security
variables:
# Use now deprecadet License-Scanning
LICENSE_MANAGEMENT_VERSION: 4
secret_detection:
stage: security
interruptible: true
needs: []
code_quality:
stage: qa
interruptible: true
license_scanning:
stage: qa
interruptible: true
needs: []
before_script:
- |
set -x
apt update
apt install -y --no-install-recommends python3 python3-venv
curl -sSL https://install.python-poetry.org/ | python3 -
/root/.local/bin/poetry export --format requirements.txt > ../requirements.txt
variables:
LM_PYTHON_VERSION: 3
LICENSE_FINDER_CLI_OPTS: "--recursive"
lint:shellcheck:
stage: qa
interruptible: true
needs: []
image:
name: koalaman/shellcheck-alpine
entrypoint: [""]
script:
- shellcheck --format tty $(find -name '*.sh' -type f)
allow_failure: true
lint:djlint:
stage: qa
interruptible: true
needs: []
image:
name: python:3.12-slim
entrypoint: [""]
before_script:
- pip3 install poetry
- poetry install || true
script:
- poetry run djlint --lint --profile=django .
allow_failure: true
format:black:
stage: qa
interruptible: true
needs: []
image:
name: python:3.12-slim
entrypoint: [""]
before_script:
- pip3 install poetry
- poetry install || true
script:
- poetry run black --check .
- poetry run isort --check-only .
allow_failure: true
format:djlint:
stage: qa
interruptible: true
needs: []
image:
name: python:3.12-slim
entrypoint: [""]
before_script:
- pip3 install poetry
- poetry install || true
script:
- poetry run djlint --check .
allow_failure: true