
Switch docker repo to use docker-ce package See: https://www.docker.com/blog/changes-dockerproject-org-apt-yum-repositories/ Change format of parameters for plugin cri configuration to be able to use version = 2 See: https://github.com/containerd/cri/blob/master/docs/config.md Use python3.6 instead of python3.5 in tests Change-Id: Ie56c0a7a344ea78c9f348fbf0e77617399815a7e
20 lines
714 B
Bash
Executable File
20 lines
714 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
|
|
|
|
if [[ -x $(which shellcheck) ]]; then
|
|
echo Checking shell scripts..
|
|
shellcheck -s bash -e SC1090 -e SC2162 -e SC2164 -e SC2128 -e SC2029 "${WORKSPACE}"/tools/cleanup.sh "${WORKSPACE}"/tools/*gate*.sh "${WORKSPACE}"/tools/g2/stages/* "${WORKSPACE}"/tools/g2/lib/* "${WORKSPACE}"/tools/install-external-deps.sh
|
|
else
|
|
echo No shellcheck executable found. Please, install it.
|
|
exit 1
|
|
fi
|