From b13fd7d7a043e08779ea14967fd138ed1600f3bb Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 22 Aug 2017 15:53:45 -0400 Subject: [PATCH] Add build-openstack-python-tarball job So that folks can gate on their tarballs working properly. Also make sure tox is around in pre-run not run. Change-Id: Id167cdaa2c527637c35a68e86f936b77b27ca983 --- playbooks/python-tarball/pre.yaml | 1 + playbooks/python-tarball/run.yaml | 4 ---- zuul.yaml | 8 ++++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/playbooks/python-tarball/pre.yaml b/playbooks/python-tarball/pre.yaml index 9a37b546..598638a6 100644 --- a/playbooks/python-tarball/pre.yaml +++ b/playbooks/python-tarball/pre.yaml @@ -7,3 +7,4 @@ bindep_command: /usr/bindep-env/bin/bindep bindep_fallback: /usr/local/jenkins/common_data/bindep-fallback.txt - revoke-sudo + - ensure-tox diff --git a/playbooks/python-tarball/run.yaml b/playbooks/python-tarball/run.yaml index 9600c11a..0f3fcfb8 100644 --- a/playbooks/python-tarball/run.yaml +++ b/playbooks/python-tarball/run.yaml @@ -1,8 +1,4 @@ - hosts: all - pre_tasks: - - name: Ensure tox is installed - shell: type tox || pip install --user tox - roles: - role: tox tox_extra_args: -vv python setup.py sdist diff --git a/zuul.yaml b/zuul.yaml index 9ba4c270..bd292deb 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -36,6 +36,14 @@ run: playbooks/python-tarball/run post-run: playbooks/python-tarball/post +- job: + name: build-openstack-python-tarball + parent: python-sdist + description: | + Build a tarball using tox but do not upload it anywhere. + pre-run: playbooks/python-tarball/pre + run: playbooks/python-tarball/run + - project: name: openstack-infra/openstack-zuul-jobs check: