-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
51 lines (43 loc) · 1.04 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
---
stages:
- pre-commit
- test-suite
- pop-release
include:
- project: saltstack/pop/cicd/ci-templates
file: /lint/pre-commit-run-all.yml
- project: saltstack/pop/cicd/ci-templates
file: /release/pop_release.yml
variables:
# TODO If your upstream gitlab url is "gitlab.com/my/upstream/path"
# Then your CICD_UPSTREAM_PATH would be my/upstream/path"
# Set this variable for the bot to release this project on Pypi on tag
CICD_UPSTREAM_PATH: ""
pre-commit-run-all:
image: registry.gitlab.com/saltstack/pop/cicd/containers/alpinelint:py39
.test-suite:
stage: test-suite
needs:
- pre-commit-run-all
script:
- python3 -m pip install nox
- nox -e tests-3 -- -vv
artifacts:
when: always
paths:
- artifacts
reports:
junit: artifacts/junit-report.xml
expire_in: 30 days
tests-3.7:
extends: .test-suite
image: python:3.7
tests-3.8:
extends: .test-suite
image: python:3.8
tests-3.9:
extends: .test-suite
image: python:3.9
tests-3.10:
extends: .test-suite
image: python:3.10.0