openstack-zuul-jobs/playbooks/xstatic/check-version.yaml
Andreas Jaeger 33a90d8a6c Fix xstatic-check-version
Use complete path to call xstatic-check-version so that it is found.

Change-Id: Ib94fa5dce60d38929ffeaf897ba43ae78401e927
2018-04-23 22:08:06 +02:00

29 lines
730 B
YAML

- hosts: all
tasks:
- name: Copy version check script
copy:
src: xstatic_check_version.py
dest: "{{ ansible_user_dir }}"
- 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
args:
chdir: "{{ zuul.project.src_dir }}"
command: "{{ ansible_user_dir }}/.venv/bin/python {{ ansible_user_dir }}/xstatic_check_version.py"
- name: Clean up after ourselves
file:
path: "{{ item }}"
state: absent
with_items:
- xstatic_check_version.py
- .venv