-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathscrewdriver.yaml
68 lines (59 loc) · 1.98 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
# 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
DOCUMENTATION_DEBUG: True
DOCUMENTATION_FORMATS: mkdocs
steps:
- tag_release: $BASE_PYTHON -m screwdrivercd.repo.release
jobs:
validate_codestyle:
template: python/validate_codestyle
environment:
CODESTYLE_ARGS: -v
steps:
- postinstall_dependencies: $BASE_PYTHON -m pip install -U .
requires: [~commit, ~pr]
validate_lint:
template: python/validate_lint
requires: [~commit, ~pr]
validate_test:
template: python/validate_unittest
environment:
TOX_ENVLIST: py311,py312
steps:
- postupdate_version: |
PACKAGE_VERSION="`meta get package.version`"
echo $PACKAGE_VERSION
- preend: meta set package.version "$PACKAGE_VERSION"
requires: [~commit, ~pr]
version:
template: python/generate_version
requires: [
validate_test, validate_lint, validate_codestyle
]
publish_test_pypi:
template: python/package_python
environment:
PUBLISH: True
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
requires: [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
steps:
- postinstall_dependencies: |
$BASE_PYTHON -m pip install -U .
printenv | grep SD | sort
requires: [~pr, ~publish_pypi]