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
|
- export PATH=$GOPATH/bin:./third_party/etcd:$PATH
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./hack/verify-gofmt.sh
|
- make verify BRANCH=$TRAVIS_BRANCH
|
||||||
- ./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
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc: "chat.freenode.net#kubernetes-dev"
|
irc: "chat.freenode.net#kubernetes-dev"
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -34,8 +34,12 @@ all:
|
||||||
|
|
||||||
# Runs all the presubmission verifications.
|
# Runs all the presubmission verifications.
|
||||||
#
|
#
|
||||||
|
# Args:
|
||||||
|
# BRANCH: Branch to be passed to hack/verify-godeps.sh script.
|
||||||
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# make verify
|
# make verify
|
||||||
|
# make verify BRANCH=branch_x
|
||||||
verify:
|
verify:
|
||||||
hack/verify-gofmt.sh
|
hack/verify-gofmt.sh
|
||||||
hack/verify-boilerplate.sh
|
hack/verify-boilerplate.sh
|
||||||
|
@ -46,7 +50,7 @@ verify:
|
||||||
hack/verify-swagger-spec.sh
|
hack/verify-swagger-spec.sh
|
||||||
hack/verify-linkcheck.sh
|
hack/verify-linkcheck.sh
|
||||||
hack/verify-flags-underscore.py
|
hack/verify-flags-underscore.py
|
||||||
hack/verify-godeps.sh
|
hack/verify-godeps.sh $(BRANCH)
|
||||||
.PHONY: verify
|
.PHONY: verify
|
||||||
|
|
||||||
# Build and run tests.
|
# Build and run tests.
|
||||||
|
|
|
@ -42,17 +42,8 @@ install:
|
||||||
- ./hack/build-go.sh
|
- ./hack/build-go.sh
|
||||||
- godep go install ./...
|
- godep go install ./...
|
||||||
- ./hack/travis/install-etcd.sh
|
- ./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/travis/install-std-race.sh
|
||||||
- ./hack/verify-generated-conversions.sh
|
- make verify BRANCH=${BASE_BRANCH}
|
||||||
- ./hack/verify-generated-deep-copies.sh
|
|
||||||
- ./hack/verify-generated-docs.sh
|
|
||||||
- ./hack/verify-swagger-spec.sh
|
|
||||||
- ./hack/verify-linkcheck.sh
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Disable coverage collection on pull requests
|
# Disable coverage collection on pull requests
|
||||||
|
|
Loading…
Reference in New Issue