File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,16 @@ test-fmt:
117
117
false ; \
118
118
fi
119
119
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
+
120
130
.PHONY : test-subtree
121
131
test : test-subtree
122
132
test-subtree :
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ services:
5
5
matrix :
6
6
include :
7
7
- 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
8
13
script :
9
14
- make -k all test
10
15
after_success :
You can’t perform that action at this time.
0 commit comments