@@ -4,35 +4,42 @@ workspace:
4
4
5
5
pipeline :
6
6
test :
7
- image : webhippie/golang:${GO_VERSION}
7
+ image : webhippie/golang:edge
8
8
pull : true
9
9
environment :
10
10
CGO_ENABLED : 1
11
11
TAGS : cert sqlite pam miniwinsvc
12
12
commands :
13
13
- apk -U add linux-pam-dev openssh-client
14
-
15
14
- make clean
16
15
- make vet
17
16
# - make lint
18
17
- make test
19
18
- make build
19
+ when :
20
+ event : [ push, tag, pull_request ]
20
21
21
22
test-mysql :
22
- image : webhippie/golang:${GO_VERSION}
23
+ image : webhippie/golang:edge
23
24
pull : true
24
25
commands :
25
26
- make test-mysql
26
27
when :
27
- event : push
28
+ event : [ push ]
28
29
29
30
test-pgsql :
30
- image : webhippie/golang:${GO_VERSION}
31
+ image : webhippie/golang:edge
31
32
pull : true
32
33
commands :
33
34
- make test-pgsql
34
35
when :
35
- event : push
36
+ event : [ push ]
37
+
38
+ coverage :
39
+ image : plugins/coverage
40
+ server : https://coverage.gitea.io
41
+ when :
42
+ event : [ push, tag, pull_request ]
36
43
37
44
updater :
38
45
image : karalabe/xgo-latest:latest
@@ -42,78 +49,57 @@ pipeline:
42
49
when :
43
50
event : [ push, tag ]
44
51
branch : [ master, refs/tags/* ]
45
- matrix :
46
- GO_VERSION : 1.7
47
-
48
- coverage :
49
- image : plugins/coverage
50
- server : https://coverage.gitea.io
51
- when :
52
- matrix :
53
- GO_VERSION : 1.7
54
52
55
- docker :
56
- image : plugins/docker
57
- repo : gitea/gitea
58
- tags : [ '${TAG}' ]
59
- when :
60
- event : tag
61
- branch : refs/tags/*
62
- matrix :
63
- GO_VERSION : 1.7
64
-
65
- docker :
66
- image : plugins/docker
67
- repo : gitea/gitea
68
- tags : [ 'latest' ]
69
- when :
70
- event : push
71
- branch : master
72
- matrix :
73
- GO_VERSION : 1.7
53
+ # docker:
54
+ # image: plugins/docker
55
+ # repo: gitea/gitea
56
+ # tags: [ '${TAG}' ]
57
+ # when:
58
+ # event: [ tag ]
59
+ # branch: [ refs/tags/* ]
60
+
61
+ # docker:
62
+ # image: plugins/docker
63
+ # repo: gitea/gitea
64
+ # tags: [ 'latest' ]
65
+ # when:
66
+ # event: [ push ]
67
+ # branch: [ master ]
74
68
75
69
release :
76
70
image : plugins/s3
77
71
path_style : true
78
72
source : dist/release/
79
- target : /lgtm /master
73
+ target : /gitea /master
80
74
when :
81
- event : push
82
- branch : master
83
- matrix :
84
- GO_VERSION : 1.7
75
+ event : [ push ]
76
+ branch : [ master ]
85
77
86
78
release :
87
79
image : plugins/s3
88
80
path_style : true
89
81
source : dist/release/
90
- target : /lgtm /$$TAG
82
+ target : /gitea /$$TAG
91
83
when :
92
- event : tag
93
- branch : refs/tags/*
94
- matrix :
95
- GO_VERSION : 1.7
84
+ event : [ tag ]
85
+ branch : [ refs/tags/* ]
96
86
97
87
latest :
98
88
image : plugins/s3
99
89
path_style : true
100
90
source : dist/latest/
101
- target : /lgtm /latest
91
+ target : /gitea /latest
102
92
when :
103
- event : tag
104
- branch : refs/tags/*
105
- matrix :
106
- GO_VERSION : 1.7
93
+ event : [ tag ]
94
+ branch : [ refs/tags/* ]
107
95
108
96
github :
109
97
image : plugins/github-release
110
98
files :
111
99
- dist/release/*
112
100
when :
113
- event : tag
114
- branch : refs/tags/*
115
- matrix :
116
- GO_VERSION : 1.7
101
+ event : [ tag ]
102
+ branch : [ refs/tags/* ]
117
103
118
104
gitter :
119
105
image : plugins/gitter
@@ -125,16 +111,11 @@ services:
125
111
- MYSQL_DATABASE=test
126
112
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
127
113
when :
128
- event : push
114
+ event : [ push ]
129
115
130
116
pgsql :
131
117
image : postgres:9.5
132
118
environment :
133
119
- POSTGRES_DB=test
134
120
when :
135
- event : push
136
-
137
- matrix :
138
- GO_VERSION :
139
- - 1.6
140
- - 1.7
121
+ event : [ push ]
0 commit comments