This repository was archived by the owner on May 24, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-26
lines changed Expand file tree Collapse file tree 3 files changed +8
-26
lines changed Original file line number Diff line number Diff line change @@ -52,22 +52,11 @@ pipeline:
52
52
when :
53
53
event : [ tag ]
54
54
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
-
66
55
coverage :
67
56
image : robertstettner/drone-codecov
68
57
secrets : [ codecov_token ]
69
58
files :
70
- - coverage.all
59
+ - coverage.out
71
60
when :
72
61
event : [ push, pull_request ]
73
62
branch : [ master ]
Original file line number Diff line number Diff line change 70
70
vet :
71
71
$(GO ) vet $(PACKAGES )
72
72
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
-
80
73
.PHONY : lint
81
74
lint :
82
75
@hash revive > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
@@ -112,13 +105,6 @@ fmt-check:
112
105
test :
113
106
GO111MODULE=on $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' $(PACKAGES )
114
107
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
-
122
108
.PHONY : unit-test-coverage
123
109
unit-test-coverage :
124
110
$(GO ) test -tags=' sqlite sqlite_unlock_notify' -cover -coverprofile coverage.out $(PACKAGES ) && echo " \n==>\033[32m Ok\033[m\n" || exit 1
Original file line number Diff line number Diff line change @@ -4,26 +4,32 @@ This project acts as a command line tool for operating one or multiple Gitea ins
4
4
the Gitea API implementation.
5
5
6
6
## Installation
7
+
7
8
Currently no prebuilt binaries are provided.
8
9
To install, a Go installation is needed.
10
+
9
11
``` sh
10
12
go get code.gitea.io/tea
11
13
go install code.gitea.io/tea
12
14
```
13
15
14
16
If the ` tea ` executable is not found, you might need to set up your ` $GOPATH ` and ` $PATH ` variables first:
17
+
15
18
``` sh
16
19
export PATH=$PATH :$GOROOT /bin:$GOPATH /bin
17
20
```
18
21
19
22
## Usage
23
+
20
24
First of all, you have to create a token on your ` personal settings -> application ` page of your gitea instance.
21
25
Use this token to login with ` tea ` :
26
+
22
27
``` sh
23
28
tea login add --name=try --url=https://try.gitea.io --token=xxxxxx
24
29
```
25
30
26
31
Now you can use the ` tea ` commands:
32
+
27
33
``` sh
28
34
tea issues
29
35
tea releases
@@ -34,6 +40,7 @@ tea releases
34
40
## Compilation
35
41
36
42
To compile the sources yourself run the following:
43
+
37
44
``` sh
38
45
go get code.gitea.io/tea
39
46
cd " ${GOPATH} /src/code.gitea.io/tea"
You can’t perform that action at this time.
0 commit comments