Add zuul job for checkbuild target

The new job runs 'tox -e checkbuild' to create a test project
'cafe-ui' and checks tox default targets defined in the created
project, i.e. pep8, py27-local, py35-local, py35dj20-local,
eslint, karma-local, docs-local and releasenotes,

Change-Id: I5a94939fb278a756b7118c6c2a4acdb5b98170ef
Co-Authored-By: Shu Muto <shu.mutow@gmail.com>
This commit is contained in:
Akihiro Motoki 2017-11-21 22:48:02 +00:00 committed by Shu Muto
parent 31151ab91e
commit f1b5572443
3 changed files with 34 additions and 0 deletions

16
.zuul.yaml Normal file
View File

@ -0,0 +1,16 @@
- job:
name: ui-cookiecutter-tox-checkbuild
parent: tox
pre-run: playbooks/checkbuild/pre.yaml
post-run: playbooks/checkbuild/post.yaml
vars:
tox_envlist: checkbuild
- project:
name: openstack/ui-cookiecutter
check:
jobs:
- ui-cookiecutter-tox-checkbuild
gate:
jobs:
- ui-cookiecutter-tox-checkbuild

View File

@ -0,0 +1,12 @@
- hosts: all
roles:
- role: fetch-tox-output
tox_envlist: checkbuild
zuul_work_dir: "{{ zuul.project.src_dir }}"
- hosts: all
roles:
- role: fetch-tox-output
tox_envlist: pep8,py27-local,py35-local,py35dj20-local,eslint,karma,karma-local,docs-local,releasenotes
zuul_work_dir: "{{ zuul.project.src_dir }}/.tox/checkbuild/cafe-ui"

View File

@ -0,0 +1,6 @@
- hosts: all
roles:
- install-nodejs
- install-yarn
- install-javascript-packages
- nodejs-test-dependencies