diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-02-03 08:56:21 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-02-03 08:57:12 +0900 |
commit | 645d34fe0f36153799ca8fd788da4a4e164d88c8 (patch) | |
tree | d9fda17bf79eaea75ec37aa8de2023da6974fb2d | |
parent | eac4d429c937e10fdaf79393788bf8a3cb1ff9aa (diff) |
docs: fix yardstick docs builder
Change-Id: I7b3e08a8f5950515bfd0d8e94948f71d395aec7b
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-rw-r--r-- | jjb/yardstick/yardstick-project-jobs.yml | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/jjb/yardstick/yardstick-project-jobs.yml b/jjb/yardstick/yardstick-project-jobs.yml index bfe343f4f..91138e504 100644 --- a/jjb/yardstick/yardstick-project-jobs.yml +++ b/jjb/yardstick/yardstick-project-jobs.yml @@ -58,21 +58,9 @@ - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' builders: - - shell: | - #!/bin/bash - set -o errexit - set -o pipefail - - echo "Running unit tests..." - cd $WORKSPACE - virtualenv $WORKSPACE/yardstick_venv - source $WORKSPACE/yardstick_venv/bin/activate - easy_install -U setuptools - python setup.py develop - ./run_tests.sh - - generate-api-docs-for-yardstick - - upload-review-docs - - shell: 'deactivate' + - yardstick-unit-tests-and-docs-build + - upload-under-review-docs-to-opnfv-artifacts + - report-docs-build-result-to-gerrit - job-template: name: 'yardstick-merge-{stream}' @@ -108,6 +96,18 @@ branch-pattern: '**/{branch}' builders: + - yardstick-unit-tests-and-docs-build + - upload-generated-docs-to-opnfv-artifacts + - report-docs-build-result-to-gerrit + - remove-old-docs-from-opnfv-artifacts + +################################ +# job builders +################################ + +- builder: + name: yardstick-unit-tests-and-docs-build + builders: - shell: | #!/bin/bash set -o errexit @@ -119,21 +119,15 @@ source $WORKSPACE/yardstick_venv/bin/activate easy_install -U setuptools python setup.py develop + + # unit tests ./run_tests.sh - - generate-api-docs-for-yardstick - - upload-merged-docs - - shell: 'deactivate' -################################ -# job builders -################################ + # generate api doc sources + sphinx-apidoc -o docs/apidocs yardstick -- builder: - name: generate-api-docs-for-yardstick - builders: - - shell: | - #!/bin/bash - set -o errexit - set -o pipefail + # build docs + git clone ssh://gerrit.opnfv.org:29418/releng + GERRIT_COMMENT=gerrit_comment.txt ./releng/utils/docs-build.sh - sphinx-apidoc -o docs/apidocs yardstick + deactivate |