Skip to content

Commit 34010e7

Browse files
authored
Merge pull request kubernetes-csi#10 from pohly/vendor-check
check vendor directory
2 parents 849db0a + e6db50d commit 34010e7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build.make

+10
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ test-fmt:
117117
false; \
118118
fi
119119

120+
# This test only runs when dep >= 0.5 is installed, which is the case for the CI setup.
121+
.PHONY: test-vendor
122+
test: test-vendor
123+
test-vendor:
124+
@ echo; echo "### $@:"
125+
@ case "$$(dep version 2>/dev/null | grep 'version *:')" in \
126+
*v0.[56789]*) dep check && echo "vendor up-to-date" || false;; \
127+
*) echo "skipping check, dep >= 0.5 required";; \
128+
esac
129+
120130
.PHONY: test-subtree
121131
test: test-subtree
122132
test-subtree:

travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ services:
55
matrix:
66
include:
77
- go: 1.11.1
8+
before_script:
9+
- mkdir -p bin
10+
- wget https://github.com/golang/dep/releases/download/v0.5.1/dep-linux-amd64 -O bin/dep
11+
- chmod u+x bin/dep
12+
- export PATH=$PWD/bin:$PATH
813
script:
914
- make -k all test
1015
after_success:

0 commit comments

Comments
 (0)