-
Notifications
You must be signed in to change notification settings - Fork 940
/
screwdriver.yaml
78 lines (68 loc) · 2 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
# Copyright 2017, Yahoo Inc.
# Licensed under the terms of the apache license. See the LICENSE file in the project root for terms
version: 4
shared:
environment:
PACKAGE_DIRECTORY: tensorflowonspark
SPARK_HOME: ${SD_ROOT_DIR}/spark
TOX_ARGS: '--verbose'
TOX_ENVLIST: py37
annotations:
screwdriver.cd/cpu: HIGH
screwdriver.cd/ram: HIGH
jobs:
validate_test:
template: python/validate_unittest
requires: [~commit]
steps:
- prevalidate_code: |
source scripts/install_spark.sh
validate_lint:
template: python/validate_lint
requires: [~commit]
validate_codestyle:
template: python/validate_codestyle
requires: [~commit]
validate_dependencies:
template: python/validate_dependencies
requires: [~commit]
# validate_security:
# template: python/validate_security
# requires: [~commit]
validate_documentation:
template: python/documentation
environment:
DOCUMENTATION_PUBLISH: False
requires: [~commit]
steps:
- update_version: |
echo 'using version from setup.cfg'
- publish_documentation: |
$BASE_PYTHON -m pip install sphinx_rtd_theme tensorflow
$BASE_PYTHON -m screwdrivercd.documentation
publish_test_pypi:
template: python/package_python
environment:
PUBLISH: True
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
requires: [~tag:/^v\.*/]
steps:
- update_version: |
echo 'using version from setup.cfg'
publish_pypi:
template: python/package_python
environment:
PUBLISH: True
requires: [publish_test_pypi]
steps:
- update_version: |
echo 'using version from setup.cfg'
publish_documentation:
template: python/documentation
requires: [publish_pypi]
steps:
- update_version: |
echo 'using version from setup.cfg'
- publish_documentation: |
$BASE_PYTHON -m pip install sphinx_rtd_theme tensorflow
$BASE_PYTHON -m screwdrivercd.documentation