Merge "Run check-requirements in the directory of the change"
This commit is contained in:
commit
624e25171c
@ -7,6 +7,7 @@
|
||||
- ^tools/.*-requires$
|
||||
- ^.*requirements.txt$
|
||||
- ^.*requirements-py[2,3].txt$
|
||||
- playbooks/requirements-check.yaml
|
||||
gate:
|
||||
jobs:
|
||||
- requirements-check:
|
||||
@ -14,6 +15,7 @@
|
||||
- ^tools/.*-requires$
|
||||
- ^.*requirements.txt$
|
||||
- ^.*requirements-py[2,3].txt$
|
||||
- playbooks/requirements-check.yaml
|
||||
|
||||
- job:
|
||||
name: requirements-check
|
||||
|
@ -1,9 +1,6 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Copy requirements check script
|
||||
copy:
|
||||
src: files/project-requirements-change.py
|
||||
dest: "{{ ansible_user_dir }}/project-requirements-change.py"
|
||||
|
||||
- name: Run requirements check script
|
||||
command: "python project-requirements-change.py {{ zuul.branch }}"
|
||||
script: "files/project-requirements-change.py {{ zuul.branch }}"
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user