diff options
| author | Lars Kellogg-Stedman <lars@redhat.com> | 2014-10-22 11:12:50 -0400 |
|---|---|---|
| committer | Lars Kellogg-Stedman <lars@redhat.com> | 2014-10-31 10:10:27 -0400 |
| commit | 6666d1e973b4dd2b5bf22970cfcc53d77007a3e8 (patch) | |
| tree | 1e238079b671429c1edd755f3d6bd166cb5fe25a /tools/pre-commit-hook | |
| parent | 277f2448e8fde089cfed0a3dfe2e74dc265af447 (diff) | |
| download | kolla-6666d1e973b4dd2b5bf22970cfcc53d77007a3e8.tar.gz kolla-6666d1e973b4dd2b5bf22970cfcc53d77007a3e8.zip | |
add maintainer check to tests
Change-Id: I6ee985e694142aa7dadeb085b77910667ac6359f
Diffstat (limited to 'tools/pre-commit-hook')
| -rwxr-xr-x | tools/pre-commit-hook | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/pre-commit-hook b/tools/pre-commit-hook index 699cb978e..475e05912 100755 --- a/tools/pre-commit-hook +++ b/tools/pre-commit-hook @@ -33,13 +33,19 @@ find . -type f -print0 | echo "=== yaml checks ===" find . -name '*.yaml' -print0 | - xargs -0 --no-run-if-empty python ${TOPLEVEL}/tools/try-parse-yaml.py + xargs -0 --no-run-if-empty ${TOPLEVEL}/tools/validate-yaml.py \ + || RES = 1 echo "=== json checks ===" find . -name '*.json' -print0 | - xargs -0 -n1 --no-run-if-empty python -mjson.tool \ - || RES=1 + xargs -0 --no-run-if-empty ${TOPLEVEL}/tools/validate-json.py \ + || RES=1 -exit $RES +echo "=== maintainer checks ===" + +find . -name Dockerfile -print0 | + xargs -0 --no-run-if-empty ${TOPLEVEL}/tools/validate-maintainer \ + || RES=1 +exit $RES |
