diff --git a/hack/make-rules/verify.sh b/hack/make-rules/verify.sh index 7929264ce0c..7a4a2a577d6 100755 --- a/hack/make-rules/verify.sh +++ b/hack/make-rules/verify.sh @@ -30,9 +30,25 @@ EXCLUDED_PATTERNS=( "verify-linkcheck.sh" # runs in separate Jenkins job once per day due to high network usage "verify-test-owners.sh" # TODO(rmmh): figure out how to avoid endless conflicts "verify-*-dockerized.sh" # Don't run any scripts that intended to be run dockerized - "verify-typecheck.sh" # runs in separate typecheck job ) +# Exclude typecheck in certain cases, if they're running in a separate job. +if [[ ${EXCLUDE_TYPECHECK:-} =~ ^[yY]$ ]]; then + EXCLUDED_PATTERNS+=( + "verify-typecheck.sh" # runs in separate typecheck job + ) +fi + + +# Exclude godep checks in certain cases, if they're running in a separate job. +if [[ ${EXCLUDE_GODEP:-} =~ ^[yY]$ ]]; then + EXCLUDED_PATTERNS+=( + "verify-godeps.sh" # runs in separate godeps job + "verify-staging-godeps.sh" # runs in separate godeps job + "verify-godep-licenses.sh" # runs in separate godeps job + ) +fi + # Only run whitelisted fast checks in quick mode. # These run in <10s each on enisoc's workstation, assuming that # `make` and `hack/godep-restore.sh` had already been run.