This repository was archived by the owner on Jun 8, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,15 @@ workspace:
2
2
base : /srv/app
3
3
path : src/code.gitea.io/sdk
4
4
5
+ clone :
6
+ git :
7
+ image : plugins/git:1
8
+ depth : 50
9
+ tags : true
10
+
5
11
pipeline :
6
12
testing :
7
- image : webhippie/golang:latest
13
+ image : webhippie/golang:edge
8
14
pull : true
9
15
commands :
10
16
- make clean
@@ -13,14 +19,16 @@ pipeline:
13
19
- make test
14
20
- make build
15
21
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
19
27
20
28
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 ]
24
32
when :
25
33
event : [ push, tag, pull_request ]
26
34
status : [ changed, failure ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
IMPORT := code.gitea.io/sdk
2
2
3
- PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
3
+ PACKAGES ?= $(shell go list -e ./... | grep -v /vendor/ | grep -v /benchmark /)
4
4
GENERATE ?= code.gitea.io/sdk/gitea
5
5
6
6
.PHONY : all
@@ -18,7 +18,7 @@ generate:
18
18
19
19
.PHONY : fmt
20
20
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
22
22
23
23
.PHONY : vet
24
24
vet :
35
35
test :
36
36
for PKG in $( PACKAGES) ; do go test -cover -coverprofile $$ GOPATH/src/$$ PKG/coverage.out $$ PKG || exit 1; done ;
37
37
38
+ .PHONY : bench
39
+ bench :
40
+ go test -run=XXXXXX -benchtime=10s -bench=. || exit 1
41
+
38
42
.PHONY : build
39
43
build :
40
44
go build ./gitea
You can’t perform that action at this time.
0 commit comments