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:
Justin SB 2019-04-22 12:41:26 -04:00
parent bf4c4a1a95
commit 69e0b26b69
No known key found for this signature in database
GPG Key ID: 8DEC5C8217494E37
2 changed files with 10 additions and 2 deletions

View File

@ -11,4 +11,4 @@ go:
go_import_path: k8s.io/kops
script:
- make ci
- make travis-ci

View File

@ -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!"