-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
72 lines (64 loc) · 1.59 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
stages:
- test
- package
.job_template: &job_definition
stage: package
image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
script:
- "pwd; git describe"
- build-build-package
# Test the package with lintian
- build-test-lintian
- upload-package
# sleep 1h to allow debugging of running container
#- sleep 3600
artifacts:
expire_in: 1w
paths:
- '*_*.xz'
- '*_*.dsc'
- '*_amd64.changes'
- '*.deb'
- 'results/*'
test:
stage: test
image: "0xacab.org:4567/leap/gitlab-buildpackage:test_jessie_amd64"
script:
- tox --recreate
package:amd64_stretch:
variables:
ARCH: "amd64"
DIST: "stretch"
REPONAMES: "platform,client"
# Default is to fail on warnings, we disable it here
# unless we fix the standards-version depending on the release
# (see https://0xacab.org/leap/bitmask-dev/issues/9060)
LINTIAN_OPTS: "-X filename-length"
<<: *job_definition
package:amd64_buster:
variables:
ARCH: "amd64"
DIST: "buster"
REPONAMES: "client"
<<: *job_definition
package:amd64_sid:
variables:
ARCH: "amd64"
DIST: "sid"
REPONAMES: "client"
<<: *job_definition
package:amd64_artful:
variables:
ARCH: "amd64"
DIST: "artful"
REPONAMES: "client"
<<: *job_definition
package:amd64_bionic:
variables:
ARCH: "amd64"
DIST: "bionic"
REPONAMES: "client"
# Default is to fail on warnings, we disable it here
# unless all lintian warnings are fixed (#9033)
LINTIAN_OPTS: "-X filename-length, --suppress-tags newer-standards-version"
<<: *job_definition