From f1b5572443c5724a1f2592e7dbb5e0a59bc8a532 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Tue, 21 Nov 2017 22:48:02 +0000 Subject: [PATCH] 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 --- .zuul.yaml | 16 ++++++++++++++++ playbooks/checkbuild/post.yaml | 12 ++++++++++++ playbooks/checkbuild/pre.yaml | 6 ++++++ 3 files changed, 34 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/checkbuild/post.yaml create mode 100644 playbooks/checkbuild/pre.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..2bf6540 --- /dev/null +++ b/.zuul.yaml @@ -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 diff --git a/playbooks/checkbuild/post.yaml b/playbooks/checkbuild/post.yaml new file mode 100644 index 0000000..e228921 --- /dev/null +++ b/playbooks/checkbuild/post.yaml @@ -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" + diff --git a/playbooks/checkbuild/pre.yaml b/playbooks/checkbuild/pre.yaml new file mode 100644 index 0000000..35ae74d --- /dev/null +++ b/playbooks/checkbuild/pre.yaml @@ -0,0 +1,6 @@ +- hosts: all + roles: + - install-nodejs + - install-yarn + - install-javascript-packages + - nodejs-test-dependencies