File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
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 :
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ if [ ! "$DIR" ]; then
30
30
exit 1
31
31
fi
32
32
33
- REV=$( git log -n1 --format=format:%H --no-merges -- " $DIR " )
33
+ REV=$( git log -n1 --remove-empty -- format=format:%H --no-merges -- " $DIR " )
34
34
if [ " $REV " ]; then
35
35
echo " Directory '$DIR ' contains non-upstream changes:"
36
36
echo
You can’t perform that action at this time.
0 commit comments