diff --git a/.travis.yml b/.travis.yml index b2311c618d2..df95a71fe35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -60,6 +60,11 @@ matrix: - python3 -m pip install requests script: - make check_doc_links + - name: "Verify apiserver, agent, and workflow build" + language: go + go: 1.15.x + script: + - make build-backend # ================================= # TODO: merge with config from KFP diff --git a/Makefile b/Makefile index 5e664be9f1a..a0fafbbc1dc 100644 --- a/Makefile +++ b/Makefile @@ -135,3 +135,19 @@ build: ## Create GO vendor directories with all dependencies build-release-template: ## Build KFP Tekton release deployment templates @mkdir -p install/$(KFP_TEKTON_RELEASE) @kustomize build manifests/kustomize/env/kfp-template -o install/$(KFP_TEKTON_RELEASE)/kfp-tekton.yaml + +.PHONY: build-backend +build-backend: build-apiserver build-agent build-workflow ## Verify apiserver, agent, and workflow build + @echo "$@: OK" + +.PHONY: build-apiserver +build-apiserver: ## Build apiserver + go build -o apiserver ./backend/src/apiserver + +.PHONY: build-agent +build-agent: ## Build agent + go build -o agent ./backend/src/agent/persistence + +.PHONY: build-workflow +build-workflow: ## Build workflow + go build -o workflow ./backend/src/crd/controller/scheduledworkflow/*.go