3e3a8cea861f2ec212427103813420c2dd87ebd5
[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"
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"
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