diff options
author | Chris Evich <cevich@redhat.com> | 2022-09-14 14:39:19 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2022-09-29 13:06:01 -0400 |
commit | 0660f5b7a44ed12be8365bbca1f0e0018d742bb9 (patch) | |
tree | 5991542ea049916677a298ec7e9ea62a70aff5c4 /contrib/cirrus/check_go_changes.sh | |
parent | 6c8a11b7460217d765611339e7df831582b2c250 (diff) | |
download | podman-0660f5b7a44ed12be8365bbca1f0e0018d742bb9.tar.gz podman-0660f5b7a44ed12be8365bbca1f0e0018d742bb9.tar.bz2 podman-0660f5b7a44ed12be8365bbca1f0e0018d742bb9.zip |
Cirrus: Combine build and code consistency tasks
It's conceivable for CI to spend a lot of time testing code which
otherwise should be rejected due to quality problems. Previously this
was validated in a dedicated task, however a failure would still fail
the CI run. Simplify the number of CI tasks by combining the consistency
check at the tail-end of the build task.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/check_go_changes.sh')
-rwxr-xr-x | contrib/cirrus/check_go_changes.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/cirrus/check_go_changes.sh b/contrib/cirrus/check_go_changes.sh index 3c35ce51a..a92ab03af 100755 --- a/contrib/cirrus/check_go_changes.sh +++ b/contrib/cirrus/check_go_changes.sh @@ -36,6 +36,8 @@ then exit 0 fi +# Defined by/in Cirrus-CI config. +# shellcheck disable=SC2154 base=$(git merge-base $DEST_BRANCH $CIRRUS_CHANGE_IN_REPO) diffs=$(git diff $base $CIRRUS_CHANGE_IN_REPO -- '*.go' ':^vendor/') |