mirror of https://github.com/kubernetes/kops.git
travis: Create new travis-ci makefile target, run that
This lets us exclude the gofmt task which now requires bazel and also now runs in a separate test. Continuing with this should allow us to have a faster travis-ci, that should also give us better coverage (we really want travis to test osx & windows builds)
This commit is contained in:
parent
bf4c4a1a95
commit
69e0b26b69
|
@ -11,4 +11,4 @@ go:
|
|||
go_import_path: k8s.io/kops
|
||||
|
||||
script:
|
||||
- make ci
|
||||
- make travis-ci
|
||||
|
|
10
Makefile
10
Makefile
|
@ -549,7 +549,8 @@ verify-gendocs: ${KOPS}
|
|||
.PHONY: verify-bazel
|
||||
verify-bazel:
|
||||
hack/verify-bazel.sh
|
||||
#
|
||||
|
||||
# ci target is for developers, it aims to cover all the CI jobs
|
||||
# verify-gendocs will call kops target
|
||||
# verify-package has to be after verify-gendoc, because with .gitignore for federation bindata
|
||||
# it bombs in travis. verify-gendoc generates the bindata file.
|
||||
|
@ -557,6 +558,13 @@ verify-bazel:
|
|||
ci: govet verify-gofmt verify-boilerplate verify-bazel verify-misspelling nodeup examples test | verify-gendocs verify-packages verify-apimachinery
|
||||
echo "Done!"
|
||||
|
||||
# travis-ci is the target that travis-ci calls
|
||||
# we skip tasks that rely on bazel and are covered by other jobs
|
||||
# verify-gofmt: uses bazel, covered by pull-kops-verify-gofmt
|
||||
.PHONY: travis-ci
|
||||
travis-ci: govet verify-boilerplate verify-bazel verify-misspelling nodeup examples test | verify-gendocs verify-packages verify-apimachinery
|
||||
echo "Done!"
|
||||
|
||||
.PHONY: pr
|
||||
pr:
|
||||
@echo "Test passed!"
|
||||
|
|
Loading…
Reference in New Issue