File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ steps:
118
118
pull : always
119
119
image : golang:1.13
120
120
commands :
121
- - make unit-test-coverage
121
+ - make unit-test-coverage test-check
122
122
environment :
123
123
GOPROXY : off
124
124
TAGS : bindata sqlite sqlite_unlock_notify
Original file line number Diff line number Diff line change @@ -226,6 +226,18 @@ fmt-check:
226
226
test :
227
227
GO111MODULE=on $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' $(PACKAGES )
228
228
229
+ PHONY : test-check
230
+ test-check :
231
+ @echo " Checking if tests have changed the source tree..." ;
232
+ @diff=$$(git status -s ) ; \
233
+ if [ -n " $$ diff" ]; then \
234
+ echo " make test has changed files in the source tree:" ; \
235
+ echo " $$ {diff}" ; \
236
+ echo " You should change the tests to create these files in a temporary directory." ; \
237
+ echo " Do not simply add these files to .gitignore" ; \
238
+ exit 1; \
239
+ fi ;
240
+
229
241
.PHONY : test\# %
230
242
test\#% :
231
243
GO111MODULE=on $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' -run $* $(PACKAGES )
You can’t perform that action at this time.
0 commit comments