Skip to content

Commit

Permalink
Makefile: Add verify-build target
Browse files Browse the repository at this point in the history
...which should "fail successfully" since the `gh2gcs` tool has
been moved into `kpromo`.

Signed-off-by: Stephen Augustus <foo@auggie.dev>
  • Loading branch information
justaugustus committed Oct 5, 2021
1 parent 99adeb0 commit ba19191
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -139,13 +139,16 @@ update-mocks: ## Update all generated mocks

##@ Verify

.PHONY: verify verify-boilerplate verify-dependencies verify-golangci-lint verify-go-mod
.PHONY: verify verify-boilerplate verify-build verify-dependencies verify-golangci-lint verify-go-mod

verify: verify-boilerplate verify-dependencies verify-golangci-lint verify-go-mod verify-mocks ## Runs verification scripts to ensure correct execution
verify: verify-boilerplate verify-dependencies verify-golangci-lint verify-go-mod verify-mocks verify-build ## Runs verification scripts to ensure correct execution

verify-boilerplate: ## Runs the file header check
./hack/verify-boilerplate.sh

verify-build: ## Ensures repo CLI tools can be built
./hack/verify-build.sh

verify-dependencies: ## Runs zeitgeist to verify dependency versions
./hack/verify-dependencies.sh

Expand Down
21 changes: 21 additions & 0 deletions hack/verify-build.sh
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail

make build

0 comments on commit ba19191

Please sign in to comment.