1
1
workspace :
2
- base : /srv/app
2
+ base : /go
3
3
path : src/code.gitea.io/gitea
4
4
5
5
clone :
@@ -56,21 +56,18 @@ pipeline:
56
56
event : [ push, tag, pull_request ]
57
57
58
58
build-without-gcc :
59
- image : webhippie/ golang:1.8
59
+ image : golang:1.8
60
60
pull : true
61
- environment :
62
- GOPATH : /srv/app
63
61
commands :
64
62
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
65
63
when :
66
64
event : [ push, tag, pull_request ]
67
65
68
66
build :
69
- image : webhippie/ golang:edge
67
+ image : golang:1.10
70
68
pull : true
71
69
environment :
72
70
TAGS : bindata sqlite
73
- GOPATH : /srv/app
74
71
commands :
75
72
- make clean
76
73
- make generate
@@ -85,99 +82,97 @@ pipeline:
85
82
event : [ push, tag, pull_request ]
86
83
87
84
test :
88
- image : webhippie/ golang:edge
85
+ image : golang:1.10
89
86
pull : true
90
87
group : test
91
88
environment :
92
89
TAGS : bindata sqlite
93
- GOPATH : /srv/app
94
90
commands :
95
91
- make unit-test-coverage
96
92
when :
97
93
event : [ push, pull_request ]
98
94
branch : [ master ]
99
95
100
96
test :
101
- image : webhippie/ golang:edge
97
+ image : golang:1.10
102
98
pull : true
103
99
group : test
104
100
environment :
105
101
TAGS : bindata sqlite
106
- GOPATH : /srv/app
107
102
commands :
108
103
- make test
109
104
when :
110
105
event : [ push, pull_request ]
111
106
branch : [ release/* ]
112
107
113
108
test :
114
- image : webhippie/ golang:edge
109
+ image : golang:1.10
115
110
pull : true
116
111
group : test
117
112
environment :
118
113
TAGS : bindata
119
- GOPATH : /srv/app
120
114
commands :
121
115
- make test
122
116
when :
123
117
event : [ tag ]
124
118
125
119
# Commented until db locking have been resolved!
126
120
# test-sqlite:
127
- # image: webhippie/ golang:edge
121
+ # image: golang:1.10
128
122
# pull: true
129
123
# group: test
130
124
# environment:
131
125
# TAGS: bindata
132
- # GOPATH: /srv/app
133
126
# commands:
134
127
# - make test-sqlite
135
128
# when:
136
129
# event: [ push, tag, pull_request ]
137
130
138
131
test-mysql :
139
- image : webhippie/ golang:edge
132
+ image : golang:1.10
140
133
pull : true
141
134
group : test
142
135
environment :
143
136
TAGS : bindata
144
- GOPATH : /srv/app
145
137
commands :
138
+ - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
139
+ - apt-get install -y git-lfs
146
140
- make integration-test-coverage
147
141
when :
148
142
event : [ push, pull_request ]
149
143
branch : [ master ]
150
144
151
145
test-mysql :
152
- image : webhippie/ golang:edge
146
+ image : golang:1.10
153
147
pull : true
154
148
group : test
155
149
environment :
156
150
TAGS : bindata
157
- GOPATH : /srv/app
158
151
commands :
152
+ - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
153
+ - apt-get install -y git-lfs
159
154
- make test-mysql
160
155
when :
161
156
event : [ tag ]
162
157
163
158
test-pgsql :
164
- image : webhippie/ golang:edge
159
+ image : golang:1.10
165
160
pull : true
166
161
group : test
167
162
environment :
168
163
TAGS : bindata
169
- GOPATH : /srv/app
170
164
commands :
165
+ - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
166
+ - apt-get install -y git-lfs
171
167
- make test-pgsql
172
168
when :
173
169
event : [ push, tag, pull_request ]
174
170
175
171
generate-coverage :
176
- image : webhippie/ golang:edge
172
+ image : golang:1.10
177
173
pull : true
178
174
environment :
179
175
TAGS : bindata
180
- GOPATH : /srv/app
181
176
commands :
182
177
- make coverage
183
178
when :
@@ -198,7 +193,6 @@ pipeline:
198
193
pull : true
199
194
environment :
200
195
TAGS : bindata sqlite
201
- GOPATH : /srv/app
202
196
commands :
203
197
- make release
204
198
when :
0 commit comments