1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-25 20:59:28 +01:00

Add verify-gofmt and verify-vendor make target

So e.g. CI can run 'make verify-gofmt' instead of ./hack/verify-gofmt in case the script location changes.
This commit is contained in:
Jan Chaloupka
2020-05-27 10:38:58 +02:00
parent 83e04960af
commit a733c95dcc
2 changed files with 8 additions and 2 deletions

View File

@@ -25,8 +25,8 @@ before_script:
script:
- mkdir -p ~/gopath/src/sigs.k8s.io/
- mv ~/gopath/src/github.com/kubernetes-sigs/descheduler ~/gopath/src/sigs.k8s.io/.
- hack/verify-gofmt.sh
- hack/verify-vendor.sh
- make verify-gofmt
- make verify-vendor
- make lint
- make build
- make test-unit

View File

@@ -62,6 +62,12 @@ push: push-container-to-gcloud
clean:
rm -rf _output
verify-gofmt:
./hack/verify-gofmt.sh
verify-vendor:
./hack/verify-vendor.sh
test-unit:
./test/run-unit-tests.sh