mirror of https://github.com/k3s-io/k3s
Use make verify in Travis and Shippable instead of invoking a list of scripts by hand
parent
282bf64dcd
commit
053b6731c0
11
.travis.yml
11
.travis.yml
|
@ -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"
|
||||
|
|
6
Makefile
6
Makefile
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue