File tree 7 files changed +24
-23
lines changed
7 files changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ pipeline:
67
67
image : golang:1.11
68
68
pull : true
69
69
environment :
70
- TAGS : bindata sqlite
70
+ TAGS : bindata sqlite sqlite_unlock_notify
71
71
commands :
72
72
- make clean
73
73
- make generate
@@ -87,7 +87,7 @@ pipeline:
87
87
pull : true
88
88
group : test
89
89
environment :
90
- TAGS : bindata sqlite
90
+ TAGS : bindata sqlite sqlite_unlock_notify
91
91
commands :
92
92
- make unit-test-coverage
93
93
when :
@@ -99,7 +99,7 @@ pipeline:
99
99
pull : true
100
100
group : test
101
101
environment :
102
- TAGS : bindata sqlite
102
+ TAGS : bindata sqlite sqlite_unlock_notify
103
103
commands :
104
104
- make test
105
105
when :
@@ -117,17 +117,18 @@ pipeline:
117
117
when :
118
118
event : [ tag ]
119
119
120
- # Commented until db locking have been resolved!
121
- # test-sqlite:
122
- # image: golang:1.10
123
- # pull: true
124
- # group: test
125
- # environment:
126
- # TAGS: bindata
127
- # commands:
128
- # - make test-sqlite
129
- # when:
130
- # event: [ push, tag, pull_request ]
120
+ test-sqlite :
121
+ image : golang:1.11
122
+ pull : true
123
+ group : test
124
+ environment :
125
+ TAGS : bindata
126
+ commands :
127
+ - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
128
+ - apt-get install -y git-lfs
129
+ - make test-sqlite
130
+ when :
131
+ event : [ push, tag, pull_request ]
131
132
132
133
test-mysql :
133
134
image : golang:1.11
@@ -196,7 +197,7 @@ pipeline:
196
197
image : karalabe/xgo-latest:latest
197
198
pull : true
198
199
environment :
199
- TAGS : bindata sqlite
200
+ TAGS : bindata sqlite sqlite_unlock_notify
200
201
commands :
201
202
- export PATH=$PATH:$GOPATH/bin
202
203
- make release
Original file line number Diff line number Diff line change 4
4
FROM golang:1.10-alpine3.7 AS build-env
5
5
6
6
ARG GITEA_VERSION
7
- ARG TAGS="sqlite"
7
+ ARG TAGS="sqlite sqlite_unlock_notify "
8
8
ENV TAGS "bindata $TAGS"
9
9
10
10
# Build deps
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ fmt-check:
159
159
160
160
.PHONY : test
161
161
test :
162
- $(GO ) test -tags=sqlite $(PACKAGES )
162
+ $(GO ) test -tags=' sqlite sqlite_unlock_notify ' $(PACKAGES )
163
163
164
164
.PHONY : coverage
165
165
coverage :
@@ -170,7 +170,7 @@ coverage:
170
170
171
171
.PHONY : unit-test-coverage
172
172
unit-test-coverage :
173
- for PKG in $( PACKAGES) ; do $( GO) test -tags=sqlite -cover -coverprofile $$ GOPATH/src/$$ PKG/coverage.out $$ PKG || exit 1; done ;
173
+ for PKG in $( PACKAGES) ; do $( GO) test -tags=' sqlite sqlite_unlock_notify ' -cover -coverprofile $$ GOPATH/src/$$ PKG/coverage.out $$ PKG || exit 1; done ;
174
174
175
175
.PHONY : vendor
176
176
vendor :
@@ -234,7 +234,7 @@ integrations.test: $(SOURCES)
234
234
$(GO ) test -c code.gitea.io/gitea/integrations -o integrations.test
235
235
236
236
integrations.sqlite.test : $(SOURCES )
237
- $(GO ) test -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags ' sqlite'
237
+ $(GO ) test -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags ' sqlite sqlite_unlock_notify '
238
238
239
239
integrations.cover.test : $(SOURCES )
240
240
$(GO ) test -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(PACKAGES ) | tr ' ' ',') -o integrations.cover.test
Original file line number Diff line number Diff line change 19
19
"type" : " go" ,
20
20
"request" : " launch" ,
21
21
"mode" : " debug" ,
22
- "buildFlags" : " -tags=\" sqlite\" " ,
22
+ "buildFlags" : " -tags=\" sqlite sqlite_unlock_notify \" " ,
23
23
"port" : 2345 ,
24
24
"host" : " 127.0.0.1" ,
25
25
"program" : " ${workspaceRoot}/main.go" ,
Original file line number Diff line number Diff line change 35
35
"focus" : false ,
36
36
"panel" : " shared"
37
37
},
38
- "args" : [" build" , " -tags=\" sqlite\" " ],
38
+ "args" : [" build" , " -tags=\" sqlite sqlite_unlock_notify \" " ],
39
39
"linux" : {
40
40
"args" : [" -o" , " gitea" , " ${workspaceRoot}/main.go" ]
41
41
},
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)
8
8
.PHONY : docker
9
9
docker :
10
10
docker build --disable-content-trust=false -t $(DOCKER_REF ) .
11
- # support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite" .
11
+ # support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite sqlite_unlock_notify " .
12
12
13
13
.PHONY : docker-build
14
14
docker-build :
Original file line number Diff line number Diff line change 67
67
export GOPATH=$SNAPCRAFT_PART_INSTALL/../go
68
68
go get -u github.com/jteeuwen/go-bindata/...
69
69
cd $GOPATH/src/code.gitea.io/gitea
70
- TAGS="bindata sqlite pam cert" make generate build
70
+ TAGS="bindata sqlite sqlite_unlock_notify pam cert" make generate build
71
71
install : |
72
72
# Set Convenience Variables
73
73
src=$SNAPCRAFT_PART_INSTALL/../go/src/code.gitea.io/gitea
You can’t perform that action at this time.
0 commit comments