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