File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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
121131test : test-subtree
122132test-subtree :
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ services:
55matrix :
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
813script :
914- make -k all test
1015after_success :
You can’t perform that action at this time.
0 commit comments