Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit efc028e

Browse files
authored
Merge pull request #70 from go-gitea/drone-upgrade
Changes for latest DroneCI
2 parents 11e0aa8 + de51550 commit efc028e

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.drone.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ workspace:
22
base: /srv/app
33
path: src/code.gitea.io/sdk
44

5+
clone:
6+
git:
7+
image: plugins/git:1
8+
depth: 50
9+
tags: true
10+
511
pipeline:
612
testing:
7-
image: webhippie/golang:latest
13+
image: webhippie/golang:edge
814
pull: true
915
commands:
1016
- make clean
@@ -13,14 +19,16 @@ pipeline:
1319
- make test
1420
- make build
1521

16-
coverage:
17-
image: plugins/coverage
18-
server: https://coverage.gitea.io
22+
# coverage:
23+
# image: plugins/coverage:1
24+
# pull: true
25+
# secrets: [ github_token ]
26+
# server: https://coverage.gitea.io
1927

2028
discord:
21-
image: appleboy/drone-discord
22-
webhook_id: ${WEBHOOK_ID}
23-
webhook_token: ${WEBHOOK_TOKEN}
29+
image: appleboy/drone-discord:1.0.0
30+
pull: true
31+
secrets: [ discord_webhook_id, discord_webhook_token ]
2432
when:
2533
event: [ push, tag, pull_request ]
2634
status: [ changed, failure ]

.drone.yml.sig

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
IMPORT := code.gitea.io/sdk
22

3-
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
3+
PACKAGES ?= $(shell go list -e ./... | grep -v /vendor/ | grep -v /benchmark/)
44
GENERATE ?= code.gitea.io/sdk/gitea
55

66
.PHONY: all
@@ -18,7 +18,7 @@ generate:
1818

1919
.PHONY: fmt
2020
fmt:
21-
find . -name "*.go" -type f -not -path "./vendor/*" | xargs gofmt -s -w
21+
find . -name "*.go" -type f ! -path "./vendor/*" ! -path "./benchmark/*" | xargs gofmt -s -w
2222

2323
.PHONY: vet
2424
vet:
@@ -35,6 +35,10 @@ lint:
3535
test:
3636
for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;
3737

38+
.PHONY: bench
39+
bench:
40+
go test -run=XXXXXX -benchtime=10s -bench=. || exit 1
41+
3842
.PHONY: build
3943
build:
4044
go build ./gitea

0 commit comments

Comments
 (0)