提交 b7ec12a0 编写于 作者: M Matt Rickard

Run make rules in parallel

上级 e213fceb
......@@ -115,7 +115,7 @@ else
endif
.PHONY: e2e-%-amd64
e2e-%-amd64:
e2e-%-amd64: out/minikube-%-amd64
GOOS=$* GOARCH=amd64 go test -c k8s.io/minikube/test/integration --tags="$(MINIKUBE_INTEGRATION_BUILD_TAGS)" -o out/$@
e2e-windows-amd64.exe: e2e-windows-amd64
......@@ -154,6 +154,18 @@ test-iso:
test-pkg/%:
go test -v -test.timeout=30m $(REPOPATH)/$* --tags="$(MINIKUBE_BUILD_TAGS)"
.PHONY: all
all: cross drivers e2e-cross images
.PHONY: drivers
drivers: out/docker-machine-driver-hyperkit out/docker-machine-driver-kvm2
.PHONY: images
images: localkube-image localkube-dind-image localkube-dind-image-devshell
gcloud docker -- push gcr.io/k8s-minikube/localkube-image:$(TAG)
gcloud docker -- push gcr.io/k8s-minikube/localkube-dind-image:$(TAG)
gcloud docker -- push gcr.io/k8s-minikube/localkube-dind-image-devshell:$(TAG)
.PHONY: integration
integration: out/minikube
go test -v -test.timeout=30m $(REPOPATH)/test/integration --tags="$(MINIKUBE_INTEGRATION_BUILD_TAGS)" $(TEST_ARGS)
......
......@@ -23,8 +23,14 @@
set -e
export BUILD_IN_DOCKER=y
export TAG=$ghprbActualCommit
export GOPATH=/var/lib/jenkins/go
make -j 16 all
# Clean up exited containers
docker rm $(docker ps -q -f status=exited) || true
docker kill $(docker ps -q) || true
gsutil cp gs://minikube-builds/logs/index.html gs://minikube-builds/logs/${ghprbPullId}/index.html
......@@ -38,31 +44,10 @@ if out="$(git diff ${ghprbActualCommit} --name-only $(git merge-base origin/mast
make release-iso
fi
export GOPATH=~/go
# Build the e2e test target for Darwin and Linux. We don't run tests on Windows yet.
# We build these on Linux, but run the tests on different platforms.
# This makes it easier to provision slaves, since they don't need to have a go toolchain.'
# Cross also builds the hyperkit and kvm2 drivers.
BUILD_IN_DOCKER=y make cross
BUILD_IN_DOCKER=y make e2e-cross
cp -r test/integration/testdata out/
BUILD_IN_DOCKER=y make out/docker-machine-driver-hyperkit
BUILD_IN_DOCKER=y make out/docker-machine-driver-kvm2
# Don't upload the buildroot artifacts if they exist
rm -r out/buildroot || true
# Upload everything we built to Cloud Storage.
gsutil -m cp -r out/* gs://minikube-builds/${ghprbPullId}/
# Upload containers for the PR:
TAG=$ghprbActualCommit make localkube-image
gcloud docker -- push gcr.io/k8s-minikube/localkube-image:$ghprbActualCommit
TAG=$ghprbActualCommit make localkube-dind-image
gcloud docker -- push gcr.io/k8s-minikube/localkube-dind-image:$ghprbActualCommit
TAG=$ghprbActualCommit make localkube-dind-image-devshell
gcloud docker -- push gcr.io/k8s-minikube/localkube-dind-image-devshell:$ghprbActualCommit
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册