Build for stretch and zesty, and for client repo as well
[pysqlcipher.git] / .gitlab-ci.yml
1 ---
2 stages:
3   - package
4
5 before_script:
6   - echo "Running on ${HOST_HOSTNAME:=$(hostname)}"
7
8 .job_template: &job_definition
9   stage: package
10   image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
11   script:
12     - "pwd; git describe"
13     - build-build-package
14     # Test the package with lintian
15     - build-test-lintian
16     - upload-package
17     # sleep 1h to allow debugging of running container
18     # - sleep 3600
19   artifacts:
20     expire_in: 1w
21     paths:
22       - '*_*.xz'
23       - '*_*.dsc'
24       - '*_amd64.changes'
25       - '*.deb'
26       - 'results/*'
27
28
29 package:amd64_jessie:
30   variables:
31     ARCH: "amd64"
32     DIST: "jessie"
33     REPONAMES: "platform,client"
34     # Default is to fail on warnings, we disable it here
35     # unless the lintian warnings are fixed (see #2)
36     LINTIAN_OPTS: "-X filename-length"
37   <<: *job_definition
38
39 package:amd64_stretch:
40   variables:
41     ARCH: "amd64"
42     DIST: "stretch"
43     REPONAMES: "platform,client"
44     # Default is to fail on warnings, we disable it here
45     # unless the lintian warnings are fixed (see #2)
46     LINTIAN_OPTS: "-X filename-length"
47   <<: *job_definition
48
49 package:amd64_zesty:
50   variables:
51     ARCH: "amd64"
52     DIST: "zesty"
53     REPONAMES: "platform,client"
54     # Default is to fail on warnings, we disable it here
55     # unless the lintian warnings are fixed (see #2)
56     LINTIAN_OPTS: "-X filename-length"
57   <<: *job_definition