debian-mirror-gitlab/debian/.gitlab-ci.yml

154 lines
3.3 KiB
YAML
Raw Normal View History

2018-05-06 00:23:52 +05:30
---
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=always --display-experimental --pedantic
2018-05-06 00:23:52 +05:30
# PDEBUILD_CMD: eval pdebuild --use-pdebuild-internal --pbuildersatisfydepends "/usr/lib/pbuilder/pbuilder-satisfydepends-classic" --buildresult "${PB_RESULT}" --debbuildopts -sa
PDEBUILD_CMD: eval pdebuild --debbuildopts "-sa" --use-pdebuild-internal --buildresult "${PB_RESULT}"
2018-05-06 00:23:52 +05:30
EATMYDATA: "yes"
AUTOCLEANAPTCACHE: "yes"
USE_PDEBUILD_INTERNAL: "yes"
.pre_build:
script: &pre_build |
uname -a
date
env
pwd
mkdir -v -p "${PB_RESULT}"
.origtargz:
script: &origtargz |
origtargz --clean && origtargz --tar-only
rm -rf .git
if [ -x "debian/unpack-components.sh" ]; then debian/unpack-components.sh; fi
2018-05-06 00:23:52 +05:30
stages:
- check
- build
2019-01-15 11:28:35 +05:30
dpkg-control:
2018-05-06 00:23:52 +05:30
stage: check
tags:
2019-01-15 11:28:35 +05:30
- cme
2018-05-06 00:23:52 +05:30
dependencies: []
allow_failure: false
2019-01-15 11:28:35 +05:30
script:
- cme check dpkg-control
2018-05-06 00:23:52 +05:30
dpkg-copyright:
stage: check
tags:
- cme
dependencies: []
allow_failure: false
script: |
cme check dpkg-copyright
lintian:
stage: check
tags:
- lintian
dependencies: []
allow_failure: false
before_script:
- *pre_build
- cp -r debian "${PB_RESULT}"/
- cd "${PB_RESULT}"
script:
- *origtargz
- dpkg-buildpackage -S -sa -uc -us --no-check-builddeps --no-pre-clean
- ${LINTIAN_CMD}
2019-01-15 11:28:35 +05:30
yamllint:
2018-05-06 00:23:52 +05:30
stage: check
tags:
2019-01-15 11:28:35 +05:30
- yamllint
2018-05-06 00:23:52 +05:30
dependencies: []
2019-01-15 11:28:35 +05:30
allow_failure: false
script: |
yamllint -c debian/.yamllint debian/.*.yml
2018-05-06 00:23:52 +05:30
## Build
2019-01-15 11:28:35 +05:30
unstable-binary-indep:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
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
2018-05-06 00:23:52 +05:30
testing_unstable-amd64:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
2019-01-15 11:28:35 +05:30
- *origtargz
2018-05-06 00:23:52 +05:30
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/testing_unstable-amd64.tgz
unstable-i386:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
2019-01-15 11:28:35 +05:30
- *origtargz
2018-05-06 00:23:52 +05:30
- ${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:
2019-01-15 11:28:35 +05:30
- *origtargz
2018-05-06 00:23:52 +05:30
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/unstable-amd64.tgz
- ${LINTIAN_CMD} "${PB_RESULT}"/*.changes
2019-01-15 11:28:35 +05:30
experimental-amd64:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
- *origtargz
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/experimental-amd64.tgz
- ${LINTIAN_CMD}
buster-amd64:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
- *origtargz
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/buster-amd64.tgz