mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Run all non plugin module builds
This commit is contained in:
22
Makefile
22
Makefile
@@ -84,11 +84,11 @@ kustomize: $(MYGOBIN)/kustomize
|
|||||||
# plugin-to-api compatibility checks.
|
# plugin-to-api compatibility checks.
|
||||||
.PHONY: build-kustomize-api
|
.PHONY: build-kustomize-api
|
||||||
build-kustomize-api: $(builtinplugins)
|
build-kustomize-api: $(builtinplugins)
|
||||||
cd api; go build ./...
|
cd api; $(MAKE) build
|
||||||
|
|
||||||
.PHONY: generate-kustomize-api
|
.PHONY: generate-kustomize-api
|
||||||
generate-kustomize-api: $(MYGOBIN)/k8scopy
|
generate-kustomize-api:
|
||||||
cd api; go generate ./...
|
cd api; $(MAKE) generate
|
||||||
|
|
||||||
|
|
||||||
# --- Verification targets ---
|
# --- Verification targets ---
|
||||||
@@ -98,6 +98,7 @@ verify-kustomize: \
|
|||||||
lint-kustomize \
|
lint-kustomize \
|
||||||
test-unit-kustomize-all \
|
test-unit-kustomize-all \
|
||||||
test-unit-non-plugin \
|
test-unit-non-plugin \
|
||||||
|
build-non-plugin \
|
||||||
test-go-mod \
|
test-go-mod \
|
||||||
test-examples-kustomize-against-HEAD \
|
test-examples-kustomize-against-HEAD \
|
||||||
test-examples-kustomize-against-v4-release
|
test-examples-kustomize-against-v4-release
|
||||||
@@ -122,9 +123,9 @@ lint: $(MYGOBIN)/golangci-lint $(MYGOBIN)/goimports $(builtinplugins)
|
|||||||
|
|
||||||
.PHONY: lint-kustomize
|
.PHONY: lint-kustomize
|
||||||
lint-kustomize: $(MYGOBIN)/golangci-lint-kustomize $(builtinplugins)
|
lint-kustomize: $(MYGOBIN)/golangci-lint-kustomize $(builtinplugins)
|
||||||
cd api; make lint
|
cd api; $(MAKE) lint
|
||||||
cd kustomize; make lint
|
cd kustomize; $(MAKE) lint
|
||||||
cd cmd/pluginator; make lint
|
cd cmd/pluginator; $(MAKE) lint
|
||||||
|
|
||||||
.PHONY: test-unit-all
|
.PHONY: test-unit-all
|
||||||
test-unit-all: $(builtinplugins)
|
test-unit-all: $(builtinplugins)
|
||||||
@@ -134,10 +135,13 @@ test-unit-all: $(builtinplugins)
|
|||||||
test-unit-non-plugin:
|
test-unit-non-plugin:
|
||||||
./hack/for-each-module.sh "make test" "./plugin/*" 15
|
./hack/for-each-module.sh "make test" "./plugin/*" 15
|
||||||
|
|
||||||
|
.PHONY: build-non-plugin
|
||||||
|
build-non-plugin:
|
||||||
|
./hack/for-each-module.sh "make build" "./plugin/*" 15
|
||||||
|
|
||||||
.PHONY: test-unit-kustomize-api
|
.PHONY: test-unit-kustomize-api
|
||||||
test-unit-kustomize-api: build-kustomize-api
|
test-unit-kustomize-api: build-kustomize-api
|
||||||
cd api; go test ./... -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222"
|
cd api; $(MAKE) test
|
||||||
cd api/krusty; OPENAPI_TEST=true go test -run TestCustomOpenAPIFieldFromComponentWithOverlays
|
|
||||||
|
|
||||||
.PHONY: test-unit-kustomize-plugins
|
.PHONY: test-unit-kustomize-plugins
|
||||||
test-unit-kustomize-plugins:
|
test-unit-kustomize-plugins:
|
||||||
@@ -145,7 +149,7 @@ test-unit-kustomize-plugins:
|
|||||||
|
|
||||||
.PHONY: test-unit-kustomize-cli
|
.PHONY: test-unit-kustomize-cli
|
||||||
test-unit-kustomize-cli:
|
test-unit-kustomize-cli:
|
||||||
cd kustomize; go test ./...
|
cd kustomize; $(MAKE) test
|
||||||
|
|
||||||
.PHONY: test-unit-kustomize-all
|
.PHONY: test-unit-kustomize-all
|
||||||
test-unit-kustomize-all: \
|
test-unit-kustomize-all: \
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export PATH := $(MYGOBIN):$(PATH)
|
|||||||
export KUSTOMIZE_ROOT ?= $(shell pwd | sed -E 's|(.*\/kustomize)/(.*)|\1|')
|
export KUSTOMIZE_ROOT ?= $(shell pwd | sed -E 's|(.*\/kustomize)/(.*)|\1|')
|
||||||
include $(KUSTOMIZE_ROOT)/Makefile-tools.mk
|
include $(KUSTOMIZE_ROOT)/Makefile-tools.mk
|
||||||
|
|
||||||
.PHONY: lint test fix fmt tidy vet
|
.PHONY: lint test fix fmt tidy vet build
|
||||||
|
|
||||||
lint: $(MYGOBIN)/golangci-lint
|
lint: $(MYGOBIN)/golangci-lint
|
||||||
$(MYGOBIN)/golangci-lint \
|
$(MYGOBIN)/golangci-lint \
|
||||||
@@ -33,3 +33,6 @@ tidy:
|
|||||||
|
|
||||||
vet:
|
vet:
|
||||||
go vet ./...
|
go vet ./...
|
||||||
|
|
||||||
|
build:
|
||||||
|
go build -v ./...
|
||||||
|
|||||||
@@ -5,3 +5,10 @@ include ../Makefile-modules.mk
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
go test -v -timeout 45m -cover ./... -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222"
|
go test -v -timeout 45m -cover ./... -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222"
|
||||||
|
cd api/krusty; OPENAPI_TEST=true go test -run TestCustomOpenAPIFieldFromComponentWithOverlays
|
||||||
|
|
||||||
|
build:
|
||||||
|
go build -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222" ./...
|
||||||
|
|
||||||
|
generate: $(MYGOBIN)/k8scopy $(MYGOBIN)/stringer
|
||||||
|
go generate ./...
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
# Copyright 2019 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
.PHONY: generate fix vet fmt test build tidy
|
|
||||||
|
|
||||||
include ../../../../../../Makefile-modules.mk
|
include ../../../../../../Makefile-modules.mk
|
||||||
|
|
||||||
|
.PHONY: image
|
||||||
image:
|
image:
|
||||||
docker build . -t gcr.io/kustomize-functions/e2econtainerconfig
|
docker build . -t gcr.io/kustomize-functions/e2econtainerconfig
|
||||||
docker push gcr.io/kustomize-functions/e2econtainerconfig
|
docker push gcr.io/kustomize-functions/e2econtainerconfig
|
||||||
|
|||||||
@@ -8,3 +8,6 @@ lint:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
echo "Skipping test for broken module depprobcheck"
|
echo "Skipping test for broken module depprobcheck"
|
||||||
|
|
||||||
|
build:
|
||||||
|
echo "Skipping build for broken module depprobcheck"
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
export KUSTOMIZE_ROOT=$(shell cd .. && pwd)
|
|
||||||
|
|
||||||
include ../Makefile-modules.mk
|
|
||||||
1
kustomize/Makefile
Symbolic link
1
kustomize/Makefile
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../Makefile-modules.mk
|
||||||
@@ -46,3 +46,6 @@ tidy:
|
|||||||
|
|
||||||
vet:
|
vet:
|
||||||
go vet $(shell go list ./... | grep -v "/kyaml/internal/forked/github.com/go-yaml/yaml")
|
go vet $(shell go list ./... | grep -v "/kyaml/internal/forked/github.com/go-yaml/yaml")
|
||||||
|
|
||||||
|
build:
|
||||||
|
go build -v ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user