Skip to content

Commit 79ec917

Browse files
committed
Merge branch 'master' into rebase-merge-commit
2 parents 90a7c96 + 7c0c965 commit 79ec917

File tree

1,303 files changed

+251055
-59300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,303 files changed

+251055
-59300
lines changed

.drone.yml

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pipeline:
2222
branch: [ master ]
2323

2424
update-translations:
25-
image: alpine:3.6
25+
image: alpine:3.7
2626
commands:
2727
- mv ./options/locale/locale_en-US.ini ./options/
2828
- sed -i -e 's/="/=/g' -e 's/"$$//g' ./options/locale/*.ini
@@ -56,58 +56,58 @@ pipeline:
5656
event: [ push, tag, pull_request ]
5757

5858
build-without-gcc:
59-
image: golang:1.8
59+
image: golang:1.9
6060
pull: true
6161
commands:
6262
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
6363
when:
6464
event: [ push, tag, pull_request ]
6565

6666
build:
67-
image: golang:1.10
67+
image: golang:1.11
6868
pull: true
6969
environment:
70-
TAGS: bindata sqlite
70+
TAGS: bindata sqlite sqlite_unlock_notify
7171
commands:
7272
- make clean
7373
- make generate
7474
- make vet
7575
- make lint
7676
- make fmt-check
7777
- make swagger-check
78-
# - make swagger-validate
78+
- make swagger-validate
7979
- make misspell-check
8080
- make test-vendor
8181
- make build
8282
when:
8383
event: [ push, tag, pull_request ]
8484

8585
test:
86-
image: golang:1.10
86+
image: golang:1.11
8787
pull: true
8888
group: test
8989
environment:
90-
TAGS: bindata sqlite
90+
TAGS: bindata sqlite sqlite_unlock_notify
9191
commands:
9292
- make unit-test-coverage
9393
when:
9494
event: [ push, pull_request ]
9595
branch: [ master ]
9696

9797
test:
98-
image: golang:1.10
98+
image: golang:1.11
9999
pull: true
100100
group: test
101101
environment:
102-
TAGS: bindata sqlite
102+
TAGS: bindata sqlite sqlite_unlock_notify
103103
commands:
104104
- make test
105105
when:
106106
event: [ push, pull_request ]
107107
branch: [ release/* ]
108108

109109
test:
110-
image: golang:1.10
110+
image: golang:1.11
111111
pull: true
112112
group: test
113113
environment:
@@ -117,20 +117,22 @@ pipeline:
117117
when:
118118
event: [ tag ]
119119

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+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.sqlite.test)' | sh)) &
130+
- make test-sqlite
131+
when:
132+
event: [ push, tag, pull_request ]
131133

132134
test-mysql:
133-
image: golang:1.10
135+
image: golang:1.11
134136
pull: true
135137
group: test
136138
environment:
@@ -145,7 +147,7 @@ pipeline:
145147
branch: [ master ]
146148

147149
test-mysql:
148-
image: golang:1.10
150+
image: golang:1.11
149151
pull: true
150152
group: test
151153
environment:
@@ -154,12 +156,13 @@ pipeline:
154156
commands:
155157
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
156158
- apt-get install -y git-lfs
159+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
157160
- make test-mysql
158161
when:
159162
event: [ tag ]
160163

161164
test-pgsql:
162-
image: golang:1.10
165+
image: golang:1.11
163166
pull: true
164167
group: test
165168
environment:
@@ -168,12 +171,13 @@ pipeline:
168171
commands:
169172
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
170173
- apt-get install -y git-lfs
174+
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
171175
- make test-pgsql
172176
when:
173177
event: [ push, tag, pull_request ]
174178

175179
generate-coverage:
176-
image: golang:1.10
180+
image: golang:1.11
177181
pull: true
178182
environment:
179183
TAGS: bindata
@@ -196,7 +200,7 @@ pipeline:
196200
image: karalabe/xgo-latest:latest
197201
pull: true
198202
environment:
199-
TAGS: bindata sqlite
203+
TAGS: bindata sqlite sqlite_unlock_notify
200204
commands:
201205
- export PATH=$PATH:$GOPATH/bin
202206
- make release
@@ -258,6 +262,7 @@ pipeline:
258262
pull: true
259263
secrets: [ aws_access_key_id, aws_secret_access_key ]
260264
bucket: releases
265+
acl: public-read
261266
endpoint: https://storage.gitea.io
262267
path_style: true
263268
strip_prefix: dist/release/
@@ -271,6 +276,7 @@ pipeline:
271276
pull: true
272277
secrets: [ aws_access_key_id, aws_secret_access_key ]
273278
bucket: releases
279+
acl: public-read
274280
endpoint: https://storage.gitea.io
275281
path_style: true
276282
strip_prefix: dist/release/
@@ -285,6 +291,7 @@ pipeline:
285291
pull: true
286292
secrets: [ aws_access_key_id, aws_secret_access_key ]
287293
bucket: releases
294+
acl: public-read
288295
endpoint: https://storage.gitea.io
289296
path_style: true
290297
strip_prefix: dist/release/

.revive.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ignoreGeneratedHeader = false
2+
severity = "warning"
3+
confidence = 0.8
4+
errorCode = 1
5+
warningCode = 1
6+
7+
[rule.blank-imports]
8+
[rule.context-as-argument]
9+
[rule.context-keys-type]
10+
[rule.dot-imports]
11+
[rule.error-return]
12+
[rule.error-strings]
13+
[rule.error-naming]
14+
[rule.exported]
15+
[rule.if-return]
16+
[rule.increment-decrement]
17+
[rule.var-naming]
18+
[rule.var-declaration]
19+
[rule.package-comments]
20+
[rule.range]
21+
[rule.receiver-naming]
22+
[rule.time-naming]
23+
[rule.unexported-return]
24+
[rule.indent-error-flow]
25+
[rule.errorf]

0 commit comments

Comments
 (0)