33a90d8a6c
Use complete path to call xstatic-check-version so that it is found. Change-Id: Ib94fa5dce60d38929ffeaf897ba43ae78401e927
29 lines
730 B
YAML
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
|