promenade/tools/lint_gate.sh
Mark Burnett e82fd04ff1 Gate: Add publishing metadata for JUNit files
Includes:

* JSON-schema to validate gate manifests.
* `tox -e gate-lint` job to check gate manifests.
* More robust handling of conformance test results.
* Bufix in `tools/g2/lib/kube.sh` where a missing `fail` method was
  called.

Change-Id: I90740f659a691cb6ee92144205976ef97133f7bf
2017-10-31 10:38:23 -05:00

12 lines
315 B
Bash
Executable File

#!/usr/bin/env bash
set -e
SCRIPT_DIR=$(realpath "$(dirname "${0}")")
WORKSPACE=$(realpath "${SCRIPT_DIR}/..")
for manifest in $(find "${WORKSPACE}/tools/g2/manifests" -type f | sort); do
echo Checking "${manifest}"
python -m jsonschema "${WORKSPACE}/tools/g2/manifest-schema.json" -i "${manifest}"
done