openstack-zuul-jobs/playbooks/xstatic/check-version.yaml
Monty Taylor 287ee02152
Add xstatic-check-version and xstatic-publish-to-pypi
These are needed by xstatic jobs for migration.

Change-Id: I01bfd5f255b400e4fb575f31fecffbe7a254d621
2017-09-17 12:23:55 -05:00

27 lines
626 B
YAML

- hosts: all
tasks:
- name: Copy version check script
copy:
src: xstatic_check_version.py
dest: xstatic_check_version.py
- name: Make virtualenv
command: virtualenv .venv
- name: Print pip version
command: .venv/bin/pip --version
- name: Install setuptools_scm
command: .venv/bin/pip install setuptools_scm
- name: Check version match
command: .venv/bin/python xstatic_check_version.py
- name: Clean up after ourselves
file:
path: "{{ item }}"
state: absent
with_items:
- xstatic_check_version.py
- .venv