Merge "Run check-requirements in the directory of the change"

This commit is contained in:
Jenkins 2017-10-11 05:41:14 +00:00 committed by Gerrit Code Review
commit 624e25171c
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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 }}"