File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,8 @@ fmt-check:
131
131
132
132
.PHONY : test
133
133
test :
134
- $(GO ) test $(PACKAGES )
134
+ $(GO ) build # test if go build succeed without sqlite support
135
+ $(GO ) test -tags=sqlite $(PACKAGES )
135
136
136
137
.PHONY : coverage
137
138
coverage :
@@ -142,7 +143,7 @@ coverage:
142
143
143
144
.PHONY : unit-test-coverage
144
145
unit-test-coverage :
145
- for PKG in $( PACKAGES) ; do $( GO) test -cover -coverprofile $$ GOPATH/src/$$ PKG/coverage.out $$ PKG || exit 1; done ;
146
+ for PKG in $( PACKAGES) ; do $( GO) test -tags=sqlite - cover -coverprofile $$ GOPATH/src/$$ PKG/coverage.out $$ PKG || exit 1; done ;
146
147
147
148
.PHONY : test-vendor
148
149
test-vendor :
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import (
15
15
"github.com/Unknwon/com"
16
16
"github.com/go-xorm/core"
17
17
"github.com/go-xorm/xorm"
18
- _ "github.com/mattn/go-sqlite3" // for the test engine
19
18
"github.com/stretchr/testify/assert"
20
19
"gopkg.in/testfixtures.v2"
21
20
)
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import (
14
14
"code.gitea.io/gitea/modules/context"
15
15
16
16
"github.com/go-macaron/session"
17
- _ "github.com/mattn/go-sqlite3" // for the test engine
18
17
"github.com/stretchr/testify/assert"
19
18
"gopkg.in/macaron.v1"
20
19
)
You can’t perform that action at this time.
0 commit comments