Merge branch 'role-selector' into 'master'
[mailman-postorious.git] / .gitlab-ci.yml
blob9e9da7f4a6b24a7ac90f811faff58072398a5c49
1 ---
2 image: ghcr.io/maxking/mailman-ci-runner
4 py36-django22:
5   stage: test
6   script:
7     - tox -e py36-django22
9 py36-django31:
10   stage: test
11   script:
12     - tox -e py36-django31
14 py36-django32:
15   stage: test
16   script:
17     - tox -e py36-django32
19 py37-django22:
20   stage: test
21   script:
22     - tox -e py37-django22
24 py37-django31:
25   stage: test
26   script:
27     - tox -e py37-django31
29 py37-django32:
30   stage: test
31   script:
32     - tox -e py37-django32
34 py38-django22:
35   stage: test
36   script:
37     - tox -e py38-django22
39 py38-django31:
40   stage: test
41   script:
42     - tox -e py38-django31
44 py38-django32:
45   stage: test
46   script:
47     - tox -e py38-django32
49 py39-django22:
50   stage: test
51   script:
52     - tox -e py39-django22
54 py39-django30:
55   stage: test
56   script:
57     - tox -e py39-django30
59 py39-django31:
60   stage: test
61   script:
62     - tox -e py39-django31
64 py39-django32:
65   stage: test
66   script:
67     - tox -e py39-django32
69 py310-django32:
70   stage: test
71   script:
72     - tox -e py310-django32
74 py310-django40:
75   stage: test
76   script:
77     - tox -e py310-django40
79 py310-django-latest:
80   stage: test
81   allow_failure: true
82   script:
83     - printf "Remove all django version restriction from setup.py.\n"
84     - sed -E 's/django[<=>,.[:digit:]]+/django/' -i setup.py
85     - tox -e py310-django-latest
87 coverage:
88   stage: test
89   script:
90     - tox -e cov
91   artifacts:
92     paths:
93       - coverage
94     expire_in: 5 days
96 qa:
97   stage: test
98   script:
99     - tox -e qa
101 upstream-client:
102   stage: test
103   script:
104     - tox -e upstream-client
105   only:
106     variables:
107       - $MAILMANCLIENT_COMMIT_SHA
109 upstream-django-mailman3:
110   stage: test
111   script:
112     - tox -e upstream-django-mailman3
113   only:
114     variables:
115       - $DJANGO_MAILMAN3_COMMIT_SHA
117 include:
118   - template: SAST.gitlab-ci.yml
120 variables:
121   SAST_DEFAULT_ANALYZERS: "bandit,secrets"