forked from ash-vd/python-networkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-networkmanager.yml
More file actions
252 lines (235 loc) · 6.49 KB
/
python-networkmanager.yml
File metadata and controls
252 lines (235 loc) · 6.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
---
resource_types:
- name: pypi
type: docker-image
source:
repository: cfplatformeng/concourse-pypi-resource
- name: dput
type: docker-image
source:
repository: seveas/concourse-dput-resource
- name: ppa
type: docker-image
source:
repository: seveas/concourse-ppa-resource
# - name: copr
# type: docker-image
# source:
# repository: seveas/concourse-copr-resource
resources:
- name: git-master
type: git
source:
uri: https://github.com/seveas/python-networkmanager.git
branch: master
- name: git-gh-pages
type: git
source:
uri: https://github.com/seveas/python-networkmanager.git
branch: gh-pages
username: ((github-username))
password: ((github-password))
- name: git-releases
type: git
source:
uri: https://github.com/seveas/python-networkmanager.git
branch: master
tag_filter: '*'
- name: git-debian
type: git
source:
uri: https://github.com/seveas/python-networkmanager.git
branch: debian
# - name: git-rpm
# type: git
# source:
# uri: https://github.com/seveas/python-networkmanager.git
# branch: rpm
- name: pypi
type: pypi
source:
name: python-networkmanager
username: ((pypi-username))
password: ((pypi-password))
- name: dput
type: dput
source:
archive: ppa:dennis/python
- name: ppa
type: ppa
source:
ppa: dennis/python
package: python-networkmanager
api_token: ((launchpad-token))
# - name: copr
# type: copr
# source:
# project: seveas/python-networkmanager
# package: python-networkmanager
# api_token: ((copr-token))
jobs:
- name: docs
plan:
- get: git-master
trigger: true
- get: git-gh-pages
- task: build
config:
platform: linux
image_resource:
type: docker-image
source:
repository: seveas/build-python
tag: latest
inputs:
- name: git-master
- name: git-gh-pages
outputs:
- name: git-gh-pages-out
run:
path: sh
args:
- -exc
- |
make -C git-master/docs html
git -C git-gh-pages checkout gh-pages
rsync -av --delete --filter 'protect .git' git-master/docs/_build/html/ git-gh-pages/
touch git-gh-pages/.nojekyll
git -C git-gh-pages add -A
if ! git -C git-gh-pages diff --quiet --cached; then
git -C git-gh-pages commit -m "Automated update from $(git -C git-master rev-parse --short HEAD)"
fi
# We must make a copy because the put doesn't see our changes to the input
rsync -av --delete git-gh-pages/ git-gh-pages-out/
params:
GIT_COMMITTER_NAME: Concourse CI
GIT_AUTHOR_NAME: Concourse CI
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_EMAIL: [email protected]
- put: git-gh-pages
params:
repository: git-gh-pages-out
- name: tarball
plan:
- get: git-releases
trigger: true
- task: tarball
config:
platform: linux
image_resource:
type: docker-image
source:
repository: python
tag: latest
inputs:
- name: git-releases
outputs:
- name: tarball
run:
path: sh
args:
- -exc
- |
cd git-releases
python setup.py sdist -d ../tarball
- put: pypi
params:
glob: tarball/python-networkmanager*.tar.gz
- name: ppa
plan:
- get: pypi
trigger: true
- get: git-debian
- task: build
config:
platform: linux
image_resource:
type: docker-image
source:
repository: seveas/build-python
tag: latest
inputs:
- name: git-debian
- name: pypi
outputs:
- name: sources
run:
path: sh
args:
- -exc
- |
perl -E 'say $ENV{GPG_KEY}' | gpg --import
cd pypi
version=$(cat version)
mv python-networkmanager-$version.tar.gz python-networkmanager_$version.orig.tar.gz
tar zxvf python-networkmanager_$version.orig.tar.gz
cd python-networkmanager-$version
mv ../../git-debian/debian .
debuild -d -S -si
cd ..
mv python-networkmanager_$version* ../sources
params:
GPG_KEY: ((gpg-key))
- put: dput
params:
glob: sources/*.changes
- name: ppa-porter
plan:
- get: ppa
trigger: true
- task: split
config:
platform: linux
image_resource:
type: docker-image
source:
repository: seveas/concourse-ppa-resource
tag: latest
inputs:
- name: ppa
outputs:
- name: sources
run:
path: sh
args:
- -exc
- |
perl -E 'say $ENV{GPG_KEY}' | gpg --import
ppa-split ppa ../sources
params:
GPG_KEY: ((gpg-key))
API_TOKEN: ((launchpad-token))
DEBFULLNAME: Dennis Kaarsemaker
DEBEMAIL: [email protected]
- put: dput
params:
glob: sources/*.changes
allow_noop: true
# - name: copr
# plan:
# - get: pypi
# trigger: true
# - get: git-rpm
# - task: build
# config:
# platform: linux
# image_resource:
# type: docker-image
# source:
# repository: seveas/build-rpm-minimal
# tag: latest
# inputs:
# - name: git-rpm
# - name: pypi
# outputs:
# - name: srpm
# run:
# path: sh
# args:
# - -exc
# - |
# rpmbuild --define '_sourcedir pypi' --define '_srcrpmdir srpm' \
# --define '_topdir /tmp' -bs git-rpm/python-networkmanager.spec
# - put: copr
# params:
# glob: srpm/python-networkmanager*.src.rpm