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

Commit bf9620d

Browse files
appleboylafriks
authored andcommitted
chore: go support combine all coverage file (#24)
* Combine all coverage file in one command * remove generate-coverage * remove unused method: errCheck Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 6aa4629 commit bf9620d

File tree

3 files changed

+8
-26
lines changed

3 files changed

+8
-26
lines changed

.drone.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,11 @@ pipeline:
5252
when:
5353
event: [ tag ]
5454

55-
generate-coverage:
56-
image: golang:1.12
57-
pull: true
58-
environment:
59-
TAGS: bindata
60-
commands:
61-
- make coverage
62-
when:
63-
event: [ push, pull_request ]
64-
branch: [ master ]
65-
6655
coverage:
6756
image: robertstettner/drone-codecov
6857
secrets: [ codecov_token ]
6958
files:
70-
- coverage.all
59+
- coverage.out
7160
when:
7261
event: [ push, pull_request ]
7362
branch: [ master ]

Makefile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ fmt:
7070
vet:
7171
$(GO) vet $(PACKAGES)
7272

73-
.PHONY: errcheck
74-
errcheck:
75-
@hash errcheck > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
76-
$(GO) get -u github.com/kisielk/errcheck; \
77-
fi
78-
errcheck $(PACKAGES)
79-
8073
.PHONY: lint
8174
lint:
8275
@hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
@@ -112,13 +105,6 @@ fmt-check:
112105
test:
113106
GO111MODULE=on $(GO) test -mod=vendor -tags='sqlite sqlite_unlock_notify' $(PACKAGES)
114107

115-
.PHONY: coverage
116-
coverage:
117-
@hash gocovmerge > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
118-
$(GO) get -u github.com/wadey/gocovmerge; \
119-
fi
120-
gocovmerge $(shell find . -type f -name "coverage.out") > coverage.all;\
121-
122108
.PHONY: unit-test-coverage
123109
unit-test-coverage:
124110
$(GO) test -tags='sqlite sqlite_unlock_notify' -cover -coverprofile coverage.out $(PACKAGES) && echo "\n==>\033[32m Ok\033[m\n" || exit 1

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,32 @@ This project acts as a command line tool for operating one or multiple Gitea ins
44
the Gitea API implementation.
55

66
## Installation
7+
78
Currently no prebuilt binaries are provided.
89
To install, a Go installation is needed.
10+
911
```sh
1012
go get code.gitea.io/tea
1113
go install code.gitea.io/tea
1214
```
1315

1416
If the `tea` executable is not found, you might need to set up your `$GOPATH` and `$PATH` variables first:
17+
1518
```sh
1619
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
1720
```
1821

1922
## Usage
23+
2024
First of all, you have to create a token on your `personal settings -> application` page of your gitea instance.
2125
Use this token to login with `tea`:
26+
2227
```sh
2328
tea login add --name=try --url=https://try.gitea.io --token=xxxxxx
2429
```
2530

2631
Now you can use the `tea` commands:
32+
2733
```sh
2834
tea issues
2935
tea releases
@@ -34,6 +40,7 @@ tea releases
3440
## Compilation
3541

3642
To compile the sources yourself run the following:
43+
3744
```sh
3845
go get code.gitea.io/tea
3946
cd "${GOPATH}/src/code.gitea.io/tea"

0 commit comments

Comments
 (0)