Cirrus: add bindings checks

Make sure that bindings are in sync with the code.  The check is similar
to what's already being done with `make vendor`, so integrate the two.

[NO TESTS NEEDED]

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2021-01-19 17:19:46 +01:00
parent 41a7e11c7e
commit a3621a7cff
4 changed files with 14 additions and 9 deletions

View File

@ -146,9 +146,11 @@ function _run_swagger() {
cp -v $GOSRC/pkg/api/swagger.yaml $GOSRC/
}
function _run_vendor() {
function _run_consistency() {
make vendor
./hack/tree_status.sh
SUGGESTION="run 'make vendor' and commit all changes" ./hack/tree_status.sh
make generate-bindings
SUGGESTION="run 'make generate-bindings' and commit all changes" ./hack/tree_status.sh
}
function _run_build() {

View File

@ -214,7 +214,7 @@ case "$TEST_FLAVOR" in
install_test_configs
;;
vendor) make clean ;;
consistency) make clean ;;
release) ;;
*) die_unknown TEST_FLAVOR
esac