Files
zuul/.zuul.yaml
T
Monty Taylor fadd15a001 Use nodeenv for npm and yarn in tox
Add a wrapper installation script that will install npm and yarn into the
current virtualenv. If yarn is installed globally, the script is a
no-op.

If yarn is not installed globally, whenever tox thinks it needs to
create or re-create a virtualenv, install nodeenv then use it to
install yarn.

This removes the use of the zuul-tox-py35 job because it should now just work
properly with the normal job. It does not remove the job itself because
it's still used in tox-py35-on-zuul.

Change-Id: If360a3f0c6b3d74498f8aa063d8b1ae87daff101
2018-04-12 12:38:55 -05:00

133 lines
3.6 KiB
YAML

- nodeset:
name: zuul-functional-temp-master
nodes:
- name: controller
label: ubuntu-xenial
- name: node1
label: ubuntu-xenial
- name: node2
label: ubuntu-xenial
groups:
- name: node
nodes:
- node1
- node2
- job:
name: zuul-stream-functional
parent: multinode
nodeset: zuul-functional-temp-master
pre-run: playbooks/zuul-stream/pre.yaml
run: playbooks/zuul-stream/functional.yaml
post-run:
- playbooks/zuul-stream/post.yaml
- playbooks/zuul-stream/post-ara.yaml
required-projects:
- openstack/ara
files:
- zuul/ansible/.*
- playbooks/zuul-stream/.*
- requirements.txt
- job:
name: zuul-tox-py35
parent: tox-py35
description: |
Runs javascript build before running python 35 unit tests.
pre-run: playbooks/tox/pre.yaml
run: playbooks/tox/run.yaml
post-run: playbooks/tox/post.yaml
vars:
node_version: 8
npm_command: build
- job:
name: zuul-tox-remote
parent: tox
vars:
tox_envlist: remote
tox_environment:
ZUUL_SSH_KEY: /home/zuul/.ssh/id_rsa
ZUUL_REMOTE_IPV4: "{{ nodepool.interface_ip }}"
ZUUL_REMOTE_KEEP: "true"
- project:
check:
jobs:
- build-sphinx-docs:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
vars:
sphinx_python: python3
- tox-pep8
- tox-py35:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
- build-javascript-content:
success-url: 'npm/html/status.html'
files:
- package.json
- webpack.config.js
- yarn.lock
- web/.*
vars:
javascript_content_dir: zuul/web/static
npm_command: build:dist -- --define ZUUL_API_URL="'https://zuul.openstack.org'"
- nodejs-npm-run-lint:
vars:
node_version: 8
success-url: 'npm/reports/bundle.html'
files:
- package.json
- webpack.config.js
- yarn.lock
- web/.*
- zuul-stream-functional
- zuul-tox-remote
- nodepool-zuul-functional:
voting: false
gate:
jobs:
- build-sphinx-docs:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
vars:
sphinx_python: python3
- tox-pep8
- tox-py35:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
- build-javascript-content:
success-url: 'npm/html/status.html'
files:
- package.json
- webpack.config.js
- yarn.lock
- web/.*
vars:
javascript_content_dir: zuul/web/static
npm_command: build:dist -- --define ZUUL_API_URL="'https://zuul.openstack.org'"
- nodejs-npm-run-lint:
vars:
node_version: 8
success-url: 'npm/reports/bundle.html'
files:
- package.json
- webpack.config.js
- yarn.lock
- web/.*
- zuul-stream-functional
- zuul-tox-remote
post:
jobs:
- publish-zuul-docs
- publish-openstack-sphinx-docs-infra-python3
- publish-openstack-python-branch-tarball
- publish-openstack-javascript-content:
vars:
node_version: 8