forked from yahoo/serviceping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscrewdriver.yaml
71 lines (59 loc) · 1.7 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
version: 4
shared:
environment:
CHANGELOG_FILENAME: docs/changelog.md
PACKAGE_DIRECTORY: serviceping
jobs:
validate_test:
template: python/validate_unittest
environment:
TOX_ARGS: -p all --parallel-live
requires: [~commit, ~pr]
validate_lint:
template: python/validate_lint
requires: [~commit, ~pr]
validate_codestyle:
template: python/validate_codestyle
requires: [~commit, ~pr]
validate_deps:
template: python/validate_dependencies
requires: [~commit, ~pr]
validate_security:
template: python/validate_security
requires: [~commit, ~pr]
validate_documentation:
template: python/documentation
environment:
DOCUMENTATION_PUBLISH: False
requires: [~pr]
validate_package:
template: python/package_python
environment:
PACKAGE_TAG: False
PUBLISH: False
requires: [~pr]
generate_version:
template: python/generate_version
requires: [validate_test, validate_lint, validate_codestyle, validate_deps, validate_security]
publish_test_pypi:
template: python/package_python
environment:
PACKAGE_TAG: False
PUBLISH: True
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
requires: [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
steps:
- package_code: $BASE_PYTHON -m screwdrivercd.packaging.build_python
requires: [verify_test_package]
publish_documentation:
template: python/documentation
requires: [publish_pypi]