https://github.com/kubeflow/katib
Revision 82679294ecaecd83dba30d42f9ce9e36f732cd89 authored by Xu Xiao on 28 February 2020, 13:44:38 UTC, committed by GitHub on 28 February 2020, 13:44:38 UTC
* dynamic jobProvider and suggestionComposer registration

* enforce gofmt

* fix ut

* fix ut

* fix gofmt

* fix

* refine imports

* contain providers into package(v1alpha3)

* move job kubeflow into where providerBase in

* add consts
1 parent 3a19e1c
Raw File
Tip revision: 82679294ecaecd83dba30d42f9ce9e36f732cd89 authored by Xu Xiao on 28 February 2020, 13:44:38 UTC
dynamic jobProvider and suggestionComposer registration (#1069)
Tip revision: 8267929
Makefile
HAS_DEP := $(shell command -v dep;)
HAS_LINT := $(shell command -v golint;)

PREFIX ?= katib
CMD_PREFIX ?= cmd

# Run tests
.PHONY: test
test:
	go test ./pkg/... ./cmd/... -coverprofile coverage.out

depend:
ifndef HAS_DEP
	curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
endif
	dep ensure -v

check: fmt vet lint

fmt: depend generate
	hack/verify-gofmt.sh

lint: depend generate
ifndef HAS_LINT
	go get -u golang.org/x/lint/golint
	echo "installing golint"
endif
	hack/verify-golint.sh

vet: depend generate
	go vet ./pkg/... ./cmd/...

update:
	hack/update-gofmt.sh

# Deploy katib v1alpha3 manifests into a k8s cluster
deploy: 
	bash scripts/v1alpha3/deploy.sh

# Undeploy katib v1alpha3 manifests into a k8s cluster
undeploy:
	bash scripts/v1alpha3/undeploy.sh

# Generate code
generate:
ifndef GOPATH
	$(error GOPATH not defined, please define GOPATH. Run "go help gopath" to learn more about GOPATH)
endif
	go generate ./pkg/... ./cmd/...

build: depend generate
	bash scripts/v1alpha3/build.sh
back to top