This repository has been archived by the owner on Jun 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.gitlab-ci.yml
108 lines (98 loc) · 3.11 KB
/
.gitlab-ci.yml
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
stages:
- test
- publish
integration-test:
stage: test
image: clickable/testing
script:
- nosetests tests/integration
unit-test:
stage: test
image: clickable/testing
script:
- nosetests tests/unit
build-deb:
stage: publish
image: clickable/build-deb:bionic
rules:
- if: $CI_COMMIT_TAG == null
artifacts:
expire_in: 1 week
paths:
- ../*.deb
script:
- dpkg-buildpackage
publish-pypi:
stage: publish
image: clickable/clickable-ci
rules:
- if: $CI_COMMIT_TAG
script:
- python3 setup.py sdist bdist_wheel
- python3 -m twine upload dist/*
publish-trusty:
stage: publish
image: clickable/build-deb:bionic
rules:
- if: $CI_COMMIT_TAG
script:
- echo $GPG_PUBLIC > pub.gpg && gpg --import pub.gpg && rm pub.gpg
- echo $GPG_PRIVATE > pri.gpg && gpg --allow-secret-key-import --import pri.gpg && rm pri.gpg
- sed -i "s/) unstable/~trusty) trusty/g" debian/changelog
- debuild -S
- dput ppa:bhdouglass/clickable ../clickable_*_source.changes
publish-xenial:
stage: publish
image: clickable/build-deb:bionic
rules:
- if: $CI_COMMIT_TAG
script:
- echo $GPG_PUBLIC > pub.gpg && gpg --import pub.gpg && rm pub.gpg
- echo $GPG_PRIVATE > pri.gpg && gpg --allow-secret-key-import --import pri.gpg && rm pri.gpg
- sed -i "s/) unstable/~xenial) xenial/g" debian/changelog
- debuild -S
- dput ppa:bhdouglass/clickable ../clickable_*_source.changes
publish-bionic:
stage: publish
image: clickable/build-deb:bionic
rules:
- if: $CI_COMMIT_TAG
script:
- echo $GPG_PUBLIC > pub.gpg && gpg --import pub.gpg && rm pub.gpg
- echo $GPG_PRIVATE > pri.gpg && gpg --allow-secret-key-import --import pri.gpg && rm pri.gpg
- sed -i "s/) unstable/~bionic) bionic/g" debian/changelog
- debuild -S
- dput ppa:bhdouglass/clickable ../clickable_*_source.changes
publish-focal:
stage: publish
image: clickable/build-deb:bionic
rules:
- if: $CI_COMMIT_TAG
script:
- echo $GPG_PUBLIC > pub.gpg && gpg --import pub.gpg && rm pub.gpg
- echo $GPG_PRIVATE > pri.gpg && gpg --allow-secret-key-import --import pri.gpg && rm pri.gpg
- sed -i "s/) unstable/~focal) focal/g" debian/changelog
- debuild -S
- dput ppa:bhdouglass/clickable ../clickable_*_source.changes
publish-groovy:
stage: publish
image: clickable/build-deb:bionic
rules:
- if: $CI_COMMIT_TAG
script:
- echo $GPG_PUBLIC > pub.gpg && gpg --import pub.gpg && rm pub.gpg
- echo $GPG_PRIVATE > pri.gpg && gpg --allow-secret-key-import --import pri.gpg && rm pri.gpg
- sed -i "s/) unstable/~groovy) groovy/g" debian/changelog
- debuild -S
- dput ppa:bhdouglass/clickable ../clickable_*_source.changes
publish-hirsute:
stage: publish
image: clickable/build-deb:bionic
rules:
- if: $CI_COMMIT_TAG
script:
- echo $GPG_PUBLIC > pub.gpg && gpg --import pub.gpg && rm pub.gpg
- echo $GPG_PRIVATE > pri.gpg && gpg --allow-secret-key-import --import pri.gpg && rm pri.gpg
- sed -i "s/) unstable/~hirsute) hirsute/g" debian/changelog
- debuild -S
- dput ppa:bhdouglass/clickable ../clickable_*_source.changes