CI: new lintian job + minor corrections

This commit is contained in:
Dmitry Smirnov 2019-10-23 19:20:19 +11:00
parent 45cfa155ee
commit c5c5a5b1dc

36
debian/.gitlab-ci.yml vendored
View file

@ -2,20 +2,13 @@
variables: variables:
GIT_DEPTH: 128 GIT_DEPTH: 128
PB_RESULT: '${CI_PROJECT_DIR}/../${CI_PROJECT_NAME}_${CI_BUILD_REF}_${CI_JOB_NAME}_${CI_JOB_ID}' 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 LINTIAN_CMD: eval lintian --no-tag-display-limit --info --display-info --color=always --display-experimental --pedantic
# 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 --pbuildersatisfydepends "/usr/lib/pbuilder/pbuilder-satisfydepends-classic" --buildresult "${PB_RESULT}" --debbuildopts -sa
PDEBUILD_CMD: eval pdebuild --use-pdebuild-internal --buildresult "${PB_RESULT}" --debbuildopts -sa PDEBUILD_CMD: eval pdebuild --debbuildopts "-sa" --use-pdebuild-internal --buildresult "${PB_RESULT}"
EATMYDATA: "yes" EATMYDATA: "yes"
AUTOCLEANAPTCACHE: "yes" AUTOCLEANAPTCACHE: "yes"
USE_PDEBUILD_INTERNAL: "yes" USE_PDEBUILD_INTERNAL: "yes"
.origtargz:
script: &origtargz |
origtargz --clean
origtargz --tar-only
rm -rf .git
debian/unpack-components.sh
.pre_build: .pre_build:
script: &pre_build | script: &pre_build |
uname -a uname -a
@ -24,6 +17,12 @@ variables:
pwd pwd
mkdir -v -p "${PB_RESULT}" 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
stages: stages:
- check - check
- build - build
@ -46,6 +45,21 @@ dpkg-copyright:
script: | script: |
cme check dpkg-copyright 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}
yamllint: yamllint:
stage: check stage: check
tags: tags:
@ -63,7 +77,6 @@ unstable-binary-indep:
- pbuilder - pbuilder
- amd64 - amd64
dependencies: [] dependencies: []
## https://bugs.debian.org/867822
allow_failure: false allow_failure: false
before_script: before_script:
- *pre_build - *pre_build
@ -83,7 +96,6 @@ testing_unstable-amd64:
script: script:
- *origtargz - *origtargz
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/testing_unstable-amd64.tgz - ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/testing_unstable-amd64.tgz
- ${LINTIAN_CMD}
unstable-i386: unstable-i386:
stage: build stage: build
@ -110,7 +122,7 @@ unstable-amd64:
script: script:
- *origtargz - *origtargz
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/unstable-amd64.tgz - ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/unstable-amd64.tgz
- ${LINTIAN_CMD} - ${LINTIAN_CMD} "${PB_RESULT}"/*.changes
experimental-amd64: experimental-amd64:
stage: build stage: build