Skip to content

Commit 00f8b3a

Browse files
authored
Merge branch 'master' into gitlab-migrate
2 parents a224698 + 08208cd commit 00f8b3a

File tree

638 files changed

+39713
-10156
lines changed

Some content is hidden

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

638 files changed

+39713
-10156
lines changed

.drone.yml

Lines changed: 69 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,72 @@ workspace:
1111
path: src/code.gitea.io/gitea
1212

1313
steps:
14-
- name: pre-build
14+
- name: deps-frontend
15+
pull: always
16+
image: node:12
17+
commands:
18+
- make node_modules
19+
20+
- name: lint-frontend
21+
pull: always
22+
image: node:12
23+
commands:
24+
- make lint-frontend
25+
depends_on: [deps-frontend]
26+
27+
- name: lint-backend
28+
pull: always
29+
image: golang:1.14
30+
commands:
31+
- make lint-backend
32+
environment:
33+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
34+
GOSUMDB: sum.golang.org
35+
TAGS: bindata sqlite sqlite_unlock_notify
36+
37+
- name: build-frontend
1538
pull: always
1639
image: node:10 # this step is kept at the lowest version of node that we support
1740
commands:
18-
- make webpack
41+
- make frontend
42+
depends_on: [lint-frontend]
1943

20-
- name: build-without-gcc
44+
- name: build-backend-no-gcc
2145
pull: always
22-
image: golang:1.11 # this step is kept as the lowest version of golang that we support
46+
image: golang:1.12 # this step is kept as the lowest version of golang that we support
2347
environment:
2448
GO111MODULE: on
2549
GOPROXY: off
2650
commands:
2751
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
52+
depends_on: [lint-backend]
2853

29-
- name: build-linux-386
54+
- name: build-backend-arm64
3055
pull: always
31-
image: golang:1.13
56+
image: golang:1.14
3257
environment:
3358
GO111MODULE: on
3459
GOPROXY: off
3560
GOOS: linux
36-
GOARCH: 386
61+
GOARCH: arm64
62+
TAGS: bindata
3763
commands:
38-
- go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
64+
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
65+
- make build # test cross compile
66+
- rm ./gitea # clean
67+
depends_on: [lint-backend]
3968

40-
- name: check
69+
- name: build-backend-386
4170
pull: always
42-
image: golang:1.13
43-
commands:
44-
- make clean golangci-lint revive swagger-check swagger-validate test-vendor
71+
image: golang:1.14
4572
environment:
46-
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
47-
GOSUMDB: sum.golang.org
48-
TAGS: bindata sqlite sqlite_unlock_notify
73+
GO111MODULE: on
74+
GOPROXY: off
75+
GOOS: linux
76+
GOARCH: 386
77+
commands:
78+
- go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
79+
depends_on: [lint-backend]
4980

5081
---
5182
kind: pipeline
@@ -55,6 +86,9 @@ platform:
5586
os: linux
5687
arch: amd64
5788

89+
depends_on:
90+
- compliance
91+
5892
workspace:
5993
base: /go
6094
path: src/code.gitea.io/gitea
@@ -117,7 +151,7 @@ steps:
117151

118152
- name: build
119153
pull: always
120-
image: golang:1.13
154+
image: golang:1.14
121155
commands:
122156
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
123157
- make build
@@ -134,7 +168,7 @@ steps:
134168

135169
- name: unit-test
136170
pull: always
137-
image: golang:1.13
171+
image: golang:1.14
138172
commands:
139173
- make unit-test-coverage test-check
140174
environment:
@@ -145,7 +179,7 @@ steps:
145179

146180
- name: test-mysql
147181
pull: always
148-
image: golang:1.13
182+
image: golang:1.14
149183
commands:
150184
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
151185
- apt-get install -y git-lfs
@@ -159,7 +193,7 @@ steps:
159193

160194
- name: test-mysql8
161195
pull: always
162-
image: golang:1.13
196+
image: golang:1.14
163197
commands:
164198
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
165199
- apt-get install -y git-lfs
@@ -173,7 +207,7 @@ steps:
173207

174208
- name: test-mssql
175209
pull: always
176-
image: golang:1.13
210+
image: golang:1.14
177211
commands:
178212
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
179213
- apt-get install -y git-lfs
@@ -187,7 +221,7 @@ steps:
187221

188222
- name: generate-coverage
189223
pull: always
190-
image: golang:1.13
224+
image: golang:1.14
191225
commands:
192226
- make coverage
193227
environment:
@@ -221,8 +255,6 @@ steps:
221255
- push
222256
- pull_request
223257

224-
225-
226258
---
227259
kind: pipeline
228260
name: testing-arm64
@@ -231,6 +263,9 @@ platform:
231263
os: linux
232264
arch: arm64
233265

266+
depends_on:
267+
- compliance
268+
234269
workspace:
235270
base: /go
236271
path: src/code.gitea.io/gitea
@@ -260,7 +295,7 @@ steps:
260295

261296
- name: build
262297
pull: always
263-
image: golang:1.13
298+
image: golang:1.14
264299
commands:
265300
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
266301
- make build
@@ -271,7 +306,7 @@ steps:
271306

272307
- name: test-sqlite
273308
pull: always
274-
image: golang:1.13
309+
image: golang:1.14
275310
commands:
276311
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
277312
- apt-get install -y git-lfs
@@ -284,7 +319,7 @@ steps:
284319

285320
- name: test-pgsql
286321
pull: always
287-
image: golang:1.13
322+
image: golang:1.14
288323
commands:
289324
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
290325
- apt-get install -y git-lfs
@@ -331,7 +366,7 @@ steps:
331366
pull: default
332367
image: alpine:3.11
333368
commands:
334-
- ./scripts/update-locales.sh
369+
- ./build/update-locales.sh
335370

336371
- name: push
337372
pull: always
@@ -391,14 +426,14 @@ steps:
391426

392427
- name: static
393428
pull: always
394-
image: techknowlogick/xgo:go-1.13.x
429+
image: techknowlogick/xgo:go-1.14.x
395430
commands:
396431
- apt update && apt -y install curl
397432
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
398433
- export PATH=$PATH:$GOPATH/bin
399434
- make release
400435
environment:
401-
GOPROXY: off
436+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
402437
TAGS: bindata sqlite sqlite_unlock_notify
403438

404439
- name: gpg-sign
@@ -489,14 +524,14 @@ steps:
489524

490525
- name: static
491526
pull: always
492-
image: techknowlogick/xgo:go-1.13.x
527+
image: techknowlogick/xgo:go-1.14.x
493528
commands:
494529
- apt update && apt -y install curl
495530
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
496531
- export PATH=$PATH:$GOPATH/bin
497532
- make release
498533
environment:
499-
GOPROXY: off
534+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
500535
TAGS: bindata sqlite sqlite_unlock_notify
501536

502537
- name: gpg-sign
@@ -549,6 +584,9 @@ platform:
549584
os: linux
550585
arch: arm64
551586

587+
depends_on:
588+
- compliance
589+
552590
steps:
553591
- name: build-docs
554592
pull: always

.gitattributes

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
* text=auto eol=lf
2+
/vendor/** -text -eol
3+
/public/vendor/** -text -eol
4+
25
conf/* linguist-vendored
36
docker/* linguist-vendored
47
options/* linguist-vendored
58
public/* linguist-vendored
6-
scripts/* linguist-vendored
9+
build/* linguist-vendored
710
templates/* linguist-vendored

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ coverage.all
4444
*.log
4545

4646
/gitea
47+
/gitea-vet
4748
/debug
4849
/integrations.test
4950

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.11.4](https://github.com/go-gitea/gitea/releases/tag/v1.11.4) - 2020-04-01
8+
9+
* BUGFIXES
10+
* Only update merge_base if not already merged (#10909)
11+
* Fix milestones too many SQL variables bug (#10880) (#10904)
12+
* Protect against NPEs in notifications list (#10879) (#10883)
13+
* Convert plumbing.ErrObjectNotFound to git.ErrNotExist in getCommit (#10862) (#10868)
14+
* Convert plumbing.ErrReferenceNotFound to git.ErrNotExist in GetRefCommitID (#10676) (#10797)
15+
* Account for empty lines in receive-hook message (#10773) (#10784)
16+
* Fix bug on branch API (#10767) (#10775)
17+
* Migrate to go-git/go-git v5.0.0 (#10735) (#10753)
18+
* Fix hiding of fields in authorization source page (#10734) (#10752)
19+
* Prevent default for linkAction (#10742) (#10743)
20+
721
## [1.11.3](https://github.com/go-gitea/gitea/releases/tag/v1.11.3) - 2020-03-10
822

923
* BUGFIXES

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.13-alpine3.11 AS build-env
4+
FROM golang:1.14-alpine3.11 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}

0 commit comments

Comments
 (0)