forked from dwighthubbard/hostlists
-
Notifications
You must be signed in to change notification settings - Fork 11
/
screwdriver.yaml
59 lines (48 loc) · 1.59 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
# Copyright 2019, Oath Inc.
# Licensed under the terms of the Apache 2.0 license. See the LICENSE file in the project root for terms
version: 4
shared:
environment:
CHANGELOG_FILENAME: docs/changelog.md
jobs:
validate_codestyle:
template: python/validate_codestyle
requires: [~commit, ~pr]
validate_lint:
template: python/validate_lint
requires: [~commit, ~pr]
validate_security:
template: python/validate_security
requires: [~commit, ~pr]
validate_test:
template: python/validate_unittest
environment:
TOX_ENVLIST: py39,py310,py311
requires: [~commit, ~pr]
validate_documentation:
template: python/documentation
environment:
DOCUMENTATION_PUBLISH: False
requires: [~pr]
generate_version:
template: python/generate_version
requires: [validate_test, validate_lint, validate_codestyle, validate_security]
publish_test_pypi:
template: python/package_python
environment:
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
requires: [verify_test_package]
publish_documentation:
template: python/documentation
requires: [publish_pypi]