summaryrefslogtreecommitdiffstats
path: root/jjb/yardstick/yardstick-project-jobs.yml
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-01-28 23:54:45 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-02-02 00:44:16 +0900
commitbdcbaf0afc5d704eb9d3099f83eb7ebcfa6582ff (patch)
treefdcc3a358f66b8ebf702a71418f5dd78eee54641 /jjb/yardstick/yardstick-project-jobs.yml
parentfa8ce12bb44eb1fa94eff7c1aac2acca17e4a0cc (diff)
docs: create new job for yardstick autodocs
Yardstick needs packages installed to build document using docstring, so this patch adds new document builder in yardstick project jobs and removes yardstick from opnfv-docs jobs. We should consider to support venv or tox when aother project wants to use various python packages for their document build. Change-Id: I453b0dec02a450e338a1bb379ce790e9ddaf8083 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'jjb/yardstick/yardstick-project-jobs.yml')
-rw-r--r--jjb/yardstick/yardstick-project-jobs.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/jjb/yardstick/yardstick-project-jobs.yml b/jjb/yardstick/yardstick-project-jobs.yml
index aa02c8752..426557a0a 100644
--- a/jjb/yardstick/yardstick-project-jobs.yml
+++ b/jjb/yardstick/yardstick-project-jobs.yml
@@ -71,6 +71,8 @@
python setup.py develop
./run_tests.sh
deactivate
+ - generate-api-docs-for-yardstick
+ - upload-review-docs
- job-template:
name: 'yardstick-merge-{stream}'
@@ -81,6 +83,10 @@
- gerrit-parameter:
branch: '{branch}'
- 'ericsson-build-defaults'
+ - string:
+ name: GS_URL
+ default: '$GS_BASE{gs-pathname}'
+ description: "Directory where the build artifact will be located upon the completion of the build."
scm:
- gerrit-trigger-scm:
@@ -115,3 +121,21 @@
python setup.py develop
./run_tests.sh
deactivate
+ - generate-api-docs-for-yardstick
+ - upload-merged-docs
+
+################################
+# job builders
+################################
+
+- builder:
+ name: generate-api-docs-for-yardstick
+ builders:
+ - shell: |
+ #!/bin/bash
+ set -o errexit
+ set -o pipefail
+
+ source $WORKSPACE/yardstick_venv/bin/activate
+ sphinx-apidoc -o docs/apidocs yardstick
+ deactivate