Skip to content

Commit

Permalink
test: Add build test for apiserver, agent, and workflow (kubeflow#384)
Browse files Browse the repository at this point in the history
* Add build test for apiserver, agent, and workflow

* Separate backend build steps

* Rename backend build targets
  • Loading branch information
evan-hataishi authored Dec 4, 2020
1 parent 4493140 commit 7f05014
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7f05014

Please sign in to comment.