-
Notifications
You must be signed in to change notification settings - Fork 7
/
screwdriver.yaml
96 lines (80 loc) · 2.77 KB
/
screwdriver.yaml
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
version: 4
shared:
environment:
PACKAGE_DIRECTORY: src
TOX_ENVLIST: py39,py310,py311,py312
jobs:
validate_test:
template: python/validate_unittest
requires: [~commit, ~pr]
validate_lint:
template: python/validate_lint
requires: [~commit, ~pr]
validate_codestyle:
template: python/validate_codestyle
requires: [~commit, ~pr]
validate_security:
template: python/validate_security
requires: [~commit, ~pr]
validate_sd_cmd:
image: quay.io/pypa/manylinux2010_x86_64
steps:
- validate_code: sd-cmd validate -f sd-cmd/sd-command.yaml
requires: [~commit, ~pr]
generate_version:
template: python/generate_version
requires: [~commit, ~pr]
publish_test_pypi:
template: python/package_python
environment:
PUBLISH: True
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
requires: [validate_test, validate_lint, validate_codestyle, validate_security, generate_version]
verify_test_package:
template: python/validate_pypi_package
environment:
PYPI_INDEX_URL: https://test.pypi.org/simple
requires: [publish_test_pypi]
publish_pypi:
template: python/package_python
environment:
PUBLISH: True
requires: [verify_test_package]
publish_sd_cmd:
image: quay.io/pypa/manylinux2010_x86_64
steps:
- publish: sd-cmd publish -f sd-cmd/sd-command.yaml -t pre
requires: [validate_sd_cmd, validate_test, validate_lint, validate_codestyle, validate_safetydb, validate_security, generate_version]
test_sd_cmd_fedora:
image: fedora:latest
steps:
- testpypirun: sd-cmd python/pypirun@pre serviceping serviceping -c 1 yahoo.com
requires: [publish_sd_cmd]
test_sd_cmd_manylinux2010:
image: quay.io/pypa/manylinux2010_x86_64
steps:
- testpypirun: sd-cmd python/pypirun@pre serviceping serviceping -c 1 yahoo.com
requires: [publish_sd_cmd]
test_sd_cmd_manylinux2014:
image: quay.io/pypa/manylinux2014_x86_64
steps:
- testpypirun: sd-cmd python/pypirun@pre serviceping serviceping -c 1 yahoo.com
requires: [publish_sd_cmd]
# These containers seem to hang before the CI jobs start
# test_sd_cmd_ubuntu:
# image: ubuntu
# steps:
# - testpypirun: sd-cmd python/pypirun@pre serviceping serviceping -c 1 yahoo.com
# requires: [publish_sd_cmd]
# test_sd_cmd_alpine:
# image: alpine
# steps:
# - testpypirun: sd-cmd python/pypirun@pre serviceping serviceping -c 1 yahoo.com
# requires: [publish_sd_cmd]
promote_sd_cmd:
image: quay.io/pypa/manylinux2010_x86_64
steps:
- promote: sd-cmd promote python/pypirun latest stable
requires: [test_sd_cmd_fedora, test_sd_cmd_manylinux2010, test_sd_cmd_manylinux2014,
# test_sd_cmd_ubuntu, test_sd_cmd_alpine
]