Skip test-setup.sh in pep8 jobs
pep8 jobs should not require database setup, etc, so we can skip running test-setup.sh to save time. Also, address comments from https://review.opendev.org/670120 and use a block to not run the stat if can we will skip using the file. Change-Id: Ia140b331ae1502fcf1f685faa6dace117d77d35d
This commit is contained in:
parent
9d8e765881
commit
7513629be7
@ -1,3 +1,5 @@
|
||||
- when: not test_setup_skip
|
||||
block:
|
||||
- name: "Check if project's tools/test-setup.sh exists"
|
||||
stat:
|
||||
path: "{{ zuul_work_dir }}/tools/test-setup.sh"
|
||||
@ -11,4 +13,3 @@
|
||||
when:
|
||||
- p.stat.exists
|
||||
- p.stat.executable
|
||||
- not test_setup_skip
|
||||
|
@ -147,6 +147,7 @@
|
||||
Uses tox with the ``pep8`` environment.
|
||||
vars:
|
||||
tox_envlist: pep8
|
||||
test_setup_skip: true
|
||||
|
||||
- job:
|
||||
name: tox-cover
|
||||
|
Loading…
Reference in New Issue
Block a user