diff options
author | James E. Blair <jeblair@redhat.com> | 2018-09-29 11:50:22 -0700 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2018-09-29 11:51:43 -0700 |
commit | 3dba813c643ec8f4b3323c2a09c6aecf8ad4d338 (patch) | |
tree | 4931b06e75e56b9d0480f24bb09c13993f6fcaec /zuul/_setup_hook.py | |
parent | ca199eb9dbb64e25490ee5803e4f18c91f34681d (diff) | |
download | zuul-3dba813c643ec8f4b3323c2a09c6aecf8ad4d338.tar.gz |
Revert "web: rewrite interface in react"
Revert "Fix publish-openstack-javascript-content"
This reverts commit ca199eb9dbb64e25490ee5803e4f18c91f34681d.
This reverts commit 1082faae958bffa719ab333c3f5ae9776a8b26d7.
This appears to remove the tarball publishing system that we rely on.
Change-Id: Id746fb826dfc01b157c5b772adc1d2991ddcd93a
Diffstat (limited to 'zuul/_setup_hook.py')
-rw-r--r-- | zuul/_setup_hook.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/zuul/_setup_hook.py b/zuul/_setup_hook.py index 9d2bcc5f2..d6c730d5c 100644 --- a/zuul/_setup_hook.py +++ b/zuul/_setup_hook.py @@ -24,14 +24,10 @@ _old_from_git = pbr.packaging._from_git def _build_javascript(): if subprocess.call(['which', 'yarn']) != 0: return - if not os.path.exists('web/node_modules/.bin/webpack'): - r = subprocess.Popen(['yarn', 'install', '-d'], cwd="web/").wait() - if r: - raise RuntimeError("Yarn install failed") - if not os.path.exists('web/build/index.html'): - r = subprocess.Popen(['yarn', 'build'], cwd="web/").wait() - if r: - raise RuntimeError("Yarn build failed") + if not os.path.exists('node_modules/.bin/webpack'): + subprocess.check_call(['yarn', 'install', '-d']) + if not os.path.exists('zuul/web/static/status.bundle.js'): + subprocess.check_call(['npm', 'run', 'build:dist']) def _from_git(distribution): |