From a2a56c7062b00d2dcf368906fb7e7fb6092c5214 Mon Sep 17 00:00:00 2001 From: kaz_shinohara Date: Wed, 1 Nov 2017 11:20:47 +0900 Subject: [PATCH] Add in repo zuul job definition Add .zuul.yaml file to make sure more flexible zuul job controll by heat-dashboard team members, apart from project-config repo. We will keep basic & common jobs in project-config repo, also heat-dashboard repo will have specific jobs like as multi django ver jobs. Change-Id: Ia9084b10bf4bb1941e0eb21b51798c2090b459cc --- .zuul.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 4 ++-- tox.ini | 9 +++++++++ 3 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 .zuul.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 00000000..b6f60a97 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,55 @@ +- project: + name: openstack/heat-dashboard + check: + jobs: + - legacy-horizon-tox-py27dj18: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^heat_dashboard/locale/.*$ + - ^releasenotes/.*$ + required-projects: + - openstack/horizon + - legacy-horizon-tox-py27dj19: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^heat_dashboard/locale/.*$ + - ^releasenotes/.*$ + required-projects: + - openstack/horizon + - legacy-horizon-tox-py27dj110: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^heat_dashboard/locale/.*$ + - ^releasenotes/.*$ + required-projects: + - openstack/horizon + gate: + queue: heat-dashboard + jobs: + - legacy-horizon-tox-py27dj18: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^heat_dashboard/locale/.*$ + - ^releasenotes/.*$ + required-projects: + - openstack/horizon + - legacy-horizon-tox-py27dj19: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^heat_dashboard/locale/.*$ + - ^releasenotes/.*$ + required-projects: + - openstack/horizon + - legacy-horizon-tox-py27dj110: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^heat_dashboard/locale/.*$ + - ^releasenotes/.*$ + required-projects: + - openstack/horizon diff --git a/package.json b/package.json index 028e6d1a..95304ae6 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "eslint-plugin-jasmine": "2.9.1" }, "scripts": { - "test": "karma start karma.conf.js --single-run", - "eslint": "eslint --no-color heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/" + "test": "if [ -z $CHROME_BIN ];then export CHROME_BIN=/usr/bin/chromium-browser;fi && karma start karma.conf.js --single-run", + "lint": "eslint --no-color heat_dashboard/static/dashboard/project/heat_dashboard/template_generator/js/" }, "author": "", "license": "Apache-2.0" diff --git a/tox.ini b/tox.ini index 2e2f99ea..c5bec30b 100644 --- a/tox.ini +++ b/tox.ini @@ -106,6 +106,15 @@ exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_templ max-complexity = 20 import-order-style = pep8 +[testenv:npm] +passenv = + HOME + DISPLAY +commands = + nodeenv -p + npm install + npm run {posargs:test} + [doc8] # File extensions to check extensions = .rst, .yaml