
The original idea was that we'd have a "python27" job. But it turns out that "python27" isn't actually as universal as you might think. "tox-py27" on the other hand is a thing that can and should always work for people who want to run tox with the py27 env. Port in the jobs we had in openstack-zuul-jobs. Also, copy in the text of the old shell scripts so that we can iterate on them and make them better piecemeal. These are named zuul-tox not tox because we already have tox jobs defined elsewhere. We'll need to do the naming dance while we work on them. Change-Id: I813f3f2ae138c07918556bc81655518023527131
116 lines
2.7 KiB
YAML
116 lines
2.7 KiB
YAML
- job:
|
|
name: unittests
|
|
parent: base
|
|
description: |
|
|
Perform setup common to all unit test jobs.
|
|
|
|
This performs basic host and general project setup tasks common
|
|
to all types of unit test jobs.
|
|
roles:
|
|
- zuul: openstack-infra/zuul-jobs
|
|
pre-run: playbooks/unittests/pre
|
|
|
|
- job:
|
|
name: zuul-tox
|
|
parent: unittests
|
|
description: |
|
|
Base job containing setup and teardown for tox-based test jobs.
|
|
|
|
This performs basic host and general project setup tasks common
|
|
to all tox unit test jobs.
|
|
|
|
Responds to two variables:
|
|
|
|
tox_environment
|
|
the environment to pass on the command line
|
|
|
|
tox_command_line
|
|
an optional command line
|
|
run: playbooks/tox/run
|
|
pre-run: playbooks/tox/pre
|
|
post-run: playbooks/tox/post
|
|
|
|
- job:
|
|
name: zuul-tox-py27
|
|
parent: zuul-tox
|
|
description: |
|
|
Run unit tests for a Python project under cPython version 2.7.
|
|
|
|
Uses tox with the "py27" environment.
|
|
vars:
|
|
tox_environment: py27
|
|
|
|
- job:
|
|
name: zuul-tox-py34
|
|
parent: zuul-tox
|
|
description: |
|
|
Run unit tests for a Python project under cPython version 3.4.
|
|
|
|
Uses tox with the "py34" environment.
|
|
vars:
|
|
tox_environment: py34
|
|
|
|
- job:
|
|
name: zuul-tox-py35
|
|
parent: zuul-tox
|
|
description: |
|
|
Run unit tests for a Python project under cPython version 3.5.
|
|
|
|
Uses tox with the "py35" environment.
|
|
vars:
|
|
tox_environment: py35
|
|
|
|
- job:
|
|
name: zuul-tox-docs
|
|
parent: zuul-tox
|
|
# NOTE: This is not the OpenStack docs job, this is a job to run a tox
|
|
# environment called "docs". OpenStack will want a different job
|
|
# in openstack-infra/zuul-jobs
|
|
description: |
|
|
Run documentation unit tests.
|
|
|
|
Uses tox with the "docs" environment.
|
|
vars:
|
|
tox_environment: docs
|
|
post-run: playbooks/tox/docs-post
|
|
|
|
- job:
|
|
name: zuul-tox-linters
|
|
parent: zuul-tox
|
|
description: |
|
|
Runs code linting tests.
|
|
|
|
Uses tox with the "linters" environment.
|
|
run: playbooks/tox/linters
|
|
|
|
- job:
|
|
name: zuul-tox-cover
|
|
parent: zuul-tox
|
|
voting: false
|
|
description: |
|
|
Run code coverage tests.
|
|
|
|
Uses tox with the "cover" environment.
|
|
vars:
|
|
tox_environment: cover
|
|
|
|
- job:
|
|
name: zuul-tox-tarball
|
|
parent: zuul-tox
|
|
voting: false
|
|
description: |
|
|
Generate a python source tarball and a binary wheel
|
|
|
|
Uses tox with the "venv" environment.
|
|
vars:
|
|
tox_environment: venv
|
|
run: playbooks/tox/tarball
|
|
post-run: playbooks/tox/tarball-post
|
|
|
|
- project:
|
|
name: openstack-infra/zuul-jobs
|
|
check:
|
|
jobs:
|
|
- zuul-tox-linters
|
|
- tox-linters
|