File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ steps:
120
120
image : golang:1.13
121
121
commands :
122
122
- make test
123
+ - make unit-test-mysql
123
124
environment :
124
125
GOPROXY : off
125
126
TAGS : bindata sqlite sqlite_unlock_notify
Original file line number Diff line number Diff line change @@ -168,6 +168,14 @@ fmt-check:
168
168
test :
169
169
GO111MODULE=on $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' $(PACKAGES )
170
170
171
+ .PHONY : unit-test-sqlite
172
+ unit-test-sqlite :
173
+ GO111MODULE=on $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' $(PACKAGES )
174
+
175
+ .PHONY : unit-test-mysql
176
+ unit-test-mysql :
177
+ GO111MODULE=on GITEA_UNIT_TESTS_DB=mysql GITEA_UNIT_TESTS_DB_CONNSTR=" $( TEST_MYSQL_USERNAME) :$( TEST_MYSQL_PASSWORD) @tcp($( TEST_MYSQL_HOST) )/$( TEST_PGSQL_DBNAME) " $(GO ) test -mod=vendor $(PACKAGES )
178
+
171
179
.PHONY : coverage
172
180
coverage :
173
181
@hash gocovmerge > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
You can’t perform that action at this time.
0 commit comments