File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ SOURCES ?= $(shell find . -name "*.go" -type f)
21
21
22
22
TAGS ?=
23
23
24
+ TMPDIR := $(shell mktemp -d)
25
+
24
26
ifneq ($(DRONE_TAG ) ,)
25
27
VERSION ?= $(subst v,,$(DRONE_TAG))
26
28
else
@@ -82,7 +84,13 @@ test-vendor:
82
84
@hash govendor > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
83
85
go get -u github.com/kardianos/govendor; \
84
86
fi
85
- govendor status +outside +unused || exit 1
87
+ govendor list +unused | tee " $( TMPDIR) /wc-gitea-unused"
88
+ [ $$ (cat " $( TMPDIR) /wc-gitea-unused" | wc -l) -eq 0 ] || echo " Warning: /!\\ Some vendor are not used /!\\ "
89
+
90
+ govendor list +outside | tee "$(TMPDIR)/wc-gitea-outside"
91
+ [ $$(cat "$(TMPDIR)/wc-gitea-outside" | wc -l) -eq 0 ] || exit 1
92
+
93
+ govendor status || exit 1
86
94
87
95
.PHONY : test-sqlite
88
96
test-sqlite : integrations.test
Original file line number Diff line number Diff line change 1
1
{
2
2
"comment" : " " ,
3
- "ignore" : " test" ,
3
+ "ignore" : " test appengine " ,
4
4
"package" : [
5
5
{
6
6
"checksumSHA1" : " spqE5xUEPQp8YV67McMTMAUIilY=" ,
You can’t perform that action at this time.
0 commit comments