Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#10 from pohly/vendor-check
Browse files Browse the repository at this point in the history
check vendor directory
  • Loading branch information
k8s-ci-robot authored Mar 27, 2019
2 parents 849db0a + e6db50d commit 34010e7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.make
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ test-fmt:
false; \
fi

# This test only runs when dep >= 0.5 is installed, which is the case for the CI setup.
.PHONY: test-vendor
test: test-vendor
test-vendor:
@ echo; echo "### $@:"
@ case "$$(dep version 2>/dev/null | grep 'version *:')" in \
*v0.[56789]*) dep check && echo "vendor up-to-date" || false;; \
*) echo "skipping check, dep >= 0.5 required";; \
esac

.PHONY: test-subtree
test: test-subtree
test-subtree:
Expand Down
5 changes: 5 additions & 0 deletions travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ services:
matrix:
include:
- go: 1.11.1
before_script:
- mkdir -p bin
- wget https://github.com/golang/dep/releases/download/v0.5.1/dep-linux-amd64 -O bin/dep
- chmod u+x bin/dep
- export PATH=$PWD/bin:$PATH
script:
- make -k all test
after_success:
Expand Down

0 comments on commit 34010e7

Please sign in to comment.