File: .gitlab-ci.yml

package info (click to toggle)
tuxmath 2.0.3-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,488 kB
  • sloc: ansic: 18,791; sh: 4,416; makefile: 778; xml: 51; sed: 16
file content (129 lines) | stat: -rw-r--r-- 3,217 bytes parent folder | download | duplicates (3)
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
---
variables:
  GIT_DEPTH: 128
  PB_RESULT: '${CI_PROJECT_DIR}/../${CI_PROJECT_NAME}_${CI_BUILD_REF}_${CI_JOB_NAME}_${CI_JOB_ID}'
  LINTIAN_CMD: eval lintian --no-tag-display-limit --info --display-info --color=auto --display-experimental --pedantic "${PB_RESULT}"/*.changes
# AUTOPKGTEST_CMD: eval autopkgtest --apt-upgrade --user debci --output-dir "${PB_RESULT}"/debci -- lxc --sudo autopkgtest-unstable-amd64
  AUTOPKGTEST_CMD: eval autopkgtest --apt-upgrade --user sbuild --output-dir "${PB_RESULT}"/debci -- schroot unstable-amd64-sbuild
  ORIGTAR_CMD: origtargz --tar-only
# PDEBUILD_CMD: eval pdebuild --use-pdebuild-internal --pbuildersatisfydepends "/usr/lib/pbuilder/pbuilder-satisfydepends-classic" --buildresult "${PB_RESULT}" --debbuildopts -sa
  PDEBUILD_CMD: eval pdebuild --use-pdebuild-internal --buildresult "${PB_RESULT}" --debbuildopts -sa
  EATMYDATA: "yes"
  AUTOCLEANAPTCACHE: "yes"
  USE_PDEBUILD_INTERNAL: "yes"

.origtargz:
  script: &origtargz |
    ${ORIGTAR_CMD}
#    rm -rf .git
#    debian/unpack-components.sh

.pre_build:
  script: &pre_build |
    uname -a
    date
    env
    pwd
    mkdir -v -p "${PB_RESULT}"

stages:
  - check
  - build

dpkg-control:
  stage: check
  tags:
    - cme
  dependencies: []
  allow_failure: false
  script:
    - wrap-and-sort --keep-first --trailing-comma # terrible way to fix "Cannot parse: ''" in "cme check dpkg-control".
    - cme check dpkg-control

dpkg-copyright:
  stage: check
  tags:
    - cme
  dependencies: []
  allow_failure: false
  script: |
    cme check dpkg-copyright

yamllint:
  stage: check
  tags:
    - yamllint
  dependencies: []
  allow_failure: false
  script: |
    yamllint -c debian/.yamllint debian/.*.yml

## Build

unstable-binary-indep:
  stage: build
  tags:
    - pbuilder
    - amd64
  dependencies: []
## https://bugs.debian.org/867822
  allow_failure: false
  before_script:
    - *pre_build
  script:
    - *origtargz
    - pdebuild --debbuildopts "-A" --use-pdebuild-internal --buildresult "${PB_RESULT}" --architecture all -- --binary-indep --basetgz /var/cache/pbuilder/unstable-amd64.tgz

testing_unstable-amd64:
  stage: build
  tags:
    - pbuilder
    - amd64
  dependencies: []
  allow_failure: false
  before_script:
    - *pre_build
  script:
    - *origtargz
    - ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/testing_unstable-amd64.tgz
    - ${LINTIAN_CMD}

unstable-i386:
  stage: build
  tags:
    - pbuilder
    - amd64
  dependencies: []
  allow_failure: false
  before_script:
    - *pre_build
  script:
    - *origtargz
    - ${PDEBUILD_CMD} --architecture i386 -- --basetgz /var/cache/pbuilder/unstable-i386.tgz

unstable-amd64:
  stage: build
  tags:
    - pbuilder
    - amd64
  dependencies: []
  allow_failure: false
  before_script:
    - *pre_build
  script:
    - *origtargz
    - ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/unstable-amd64.tgz
    - ${LINTIAN_CMD}

stretch-amd64:
  stage: build
  tags:
    - pbuilder
    - amd64
  dependencies: []
  allow_failure: true
  before_script:
    - *pre_build
  script:
    - *origtargz
    - ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/stretch-amd64.tgz