diff --git a/.travis.yml b/.travis.yml index 9d47ea6189..1e10ec170b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,11 +6,12 @@ env: - GO111MODULE=off go: - - "1.11.4" + - "1.11.5" before_install: - go get github.com/mattn/goveralls - go get github.com/rexray/gocsi/csc + - go get github.com/golang/dep/cmd/dep - sudo apt update && sudo apt install procps -y # for installing pkill script: diff --git a/hack/verify-all.sh b/hack/verify-all.sh index 8c13122015..653b5f9869 100755 --- a/hack/verify-all.sh +++ b/hack/verify-all.sh @@ -21,3 +21,4 @@ PKG_ROOT=$(git rev-parse --show-toplevel) ${PKG_ROOT}/hack/verify-gofmt.sh ${PKG_ROOT}/hack/verify-govet.sh ${PKG_ROOT}/hack/verify-golint.sh +${PKG_ROOT}/hack/verify-dep.sh diff --git a/hack/verify-dep.sh b/hack/verify-dep.sh new file mode 100755 index 0000000000..6de099051c --- /dev/null +++ b/hack/verify-dep.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Copyright 2019 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -euo pipefail + +echo "Verifying dep check" +git grep github.com/kubernetes-sigs/azuredisk-csi-driver/pkg/azuredisk +dep version +dep ensure -v +git status +dep check +echo "No issue found" +