Use make verify in Travis and Shippable instead of invoking a list of scripts by hand

pull/6/head
Maciej Szulik 2015-08-28 11:14:35 +02:00
parent 282bf64dcd
commit 053b6731c0
3 changed files with 7 additions and 21 deletions

View File

@ -13,16 +13,7 @@ install:
- export PATH=$GOPATH/bin:./third_party/etcd:$PATH
script:
- ./hack/verify-gofmt.sh
- ./hack/verify-boilerplate.sh
- ./hack/verify-description.sh
- ./hack/verify-generated-conversions.sh
- ./hack/verify-generated-deep-copies.sh
- ./hack/verify-generated-docs.sh
- ./hack/verify-swagger-spec.sh
- ./hack/verify-linkcheck.sh
- ./hack/verify-flags-underscore.py
- ./hack/verify-godeps.sh $TRAVIS_BRANCH
- make verify BRANCH=$TRAVIS_BRANCH
notifications:
irc: "chat.freenode.net#kubernetes-dev"

View File

@ -34,8 +34,12 @@ all:
# Runs all the presubmission verifications.
#
# Args:
# BRANCH: Branch to be passed to hack/verify-godeps.sh script.
#
# Example:
# make verify
# make verify BRANCH=branch_x
verify:
hack/verify-gofmt.sh
hack/verify-boilerplate.sh
@ -46,7 +50,7 @@ verify:
hack/verify-swagger-spec.sh
hack/verify-linkcheck.sh
hack/verify-flags-underscore.py
hack/verify-godeps.sh
hack/verify-godeps.sh $(BRANCH)
.PHONY: verify
# Build and run tests.

View File

@ -42,17 +42,8 @@ install:
- ./hack/build-go.sh
- godep go install ./...
- ./hack/travis/install-etcd.sh
- ./hack/verify-gofmt.sh
- ./hack/verify-boilerplate.sh
- ./hack/verify-description.sh
- ./hack/verify-flags-underscore.py
- ./hack/verify-godeps.sh ${BASE_BRANCH}
- ./hack/travis/install-std-race.sh
- ./hack/verify-generated-conversions.sh
- ./hack/verify-generated-deep-copies.sh
- ./hack/verify-generated-docs.sh
- ./hack/verify-swagger-spec.sh
- ./hack/verify-linkcheck.sh
- make verify BRANCH=${BASE_BRANCH}
script:
# Disable coverage collection on pull requests