|
| 1 | +# Copyright 2017, Verizon Inc. |
| 2 | +# Licensed under the terms of the apache license. See the LICENSE file in the project root for terms |
| 3 | + |
| 4 | +version: 4 |
| 5 | +shared: |
| 6 | + environment: |
| 7 | + PACKAGE_DIRECTORY: tensorflowonspark |
| 8 | + SPARK_HOME: ${SD_ROOT_DIR}/spark |
| 9 | + TOX_ARGS: '--verbose' |
| 10 | + TOX_ENVLIST: py37 |
| 11 | + annotations: |
| 12 | + screwdriver.cd/cpu: HIGH |
| 13 | + screwdriver.cd/ram: HIGH |
| 14 | + |
| 15 | +jobs: |
| 16 | + validate_test: |
| 17 | + template: python/validate_unittest |
| 18 | + requires: [~commit, ~pr] |
| 19 | + steps: |
| 20 | + - prevalidate_code: | |
| 21 | + source scripts/install_spark.sh |
| 22 | +
|
| 23 | + validate_lint: |
| 24 | + template: python/validate_lint |
| 25 | + requires: [~commit, ~pr] |
| 26 | + |
| 27 | + validate_codestyle: |
| 28 | + template: python/validate_codestyle |
| 29 | + requires: [~commit, ~pr] |
| 30 | + |
| 31 | + validate_safetydb: |
| 32 | + template: python/validate_safety |
| 33 | + requires: [~commit, ~pr] |
| 34 | + |
| 35 | +# validate_security: |
| 36 | +# template: python/validate_security |
| 37 | +# requires: [~commit, ~pr] |
| 38 | + |
| 39 | + publish_test_pypi: |
| 40 | + template: python/package_python |
| 41 | + environment: |
| 42 | + PUBLISH: True |
| 43 | + TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/ |
| 44 | + requires: [validate_test, validate_lint, validate_codestyle, validate_safetydb, generate_version] |
| 45 | + steps: |
| 46 | + - update_version: | |
| 47 | + echo 'using version from setup.cfg' |
| 48 | +
|
| 49 | +# publish_pypi: |
| 50 | +# template: python/package_python |
| 51 | +# environment: |
| 52 | +# PUBLISH: True |
| 53 | +# requires: [verify_test_package] |
0 commit comments