Skip to content

Commit

Permalink
CI: Add "make proto"
Browse files Browse the repository at this point in the history
Allow make proto to work under the CI. So later we are able to check
pb.go files in CI.

fixes kata-containers#340

Signed-off-by: Ruidong Cao <caoruidong@huawei.com>
  • Loading branch information
caoruidong committed Sep 11, 2018
1 parent 5765593 commit 33aea09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ source "${cidir}/lib.sh"

pushd "${tests_repo_dir}"
.ci/run.sh
testcidir=$(dirname "$0")
"${testcidir}/../cmd/container-manager/manage_ctr_mgr.sh" docker configure -r runc -f
popd
make proto
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ build-image:
docker build ${BUILDARGS} -t ${AGENT_IMAGE}:${AGENT_TAG} .

proto: build-image
docker run -ti -v ${PWD}:/go/src/github.com/kata-containers/agent ${AGENT_IMAGE}:${AGENT_TAG} ./hack/update-generated-agent-proto.sh
docker run -i -v ${PWD}:/go/src/github.com/kata-containers/agent ${AGENT_IMAGE}:${AGENT_TAG} ./hack/update-generated-agent-proto.sh

.PHONY: clean test
clean:
Expand Down

0 comments on commit 33aea09

Please sign in to comment.