From 7f050141679ad3f0dba63eeb15f592179e41068a Mon Sep 17 00:00:00 2001 From: Evan Hataishi Date: Fri, 4 Dec 2020 10:37:58 -0800 Subject: [PATCH] test: Add build test for apiserver, agent, and workflow (#384) * Add build test for apiserver, agent, and workflow * Separate backend build steps * Rename backend build targets --- .travis.yml | 5 +++++ Makefile | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) 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