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

95 lines
2.2 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=auto --display-experimental --pedantic "${PB_RESULT}"/*.changes
ORIGTAR_CMD: origtargz --tar-only
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 --use-pdebuild-internal --buildresult "${PB_RESULT}" --debbuildopts -sa
EATMYDATA: "yes"
AUTOCLEANAPTCACHE: "yes"
USE_PDEBUILD_INTERNAL: "yes"
.pre_build:
script: &pre_build |
uname -a
date
env
pwd
mkdir -v -p "${PB_RESULT}"
stages:
- check
- build
yamllint:
stage: check
tags:
- yamllint
dependencies: []
allow_failure: false
script: |
yamllint -c debian/.yamllint debian/.*.yml
dpkg-copyright:
stage: check
tags:
- cme
dependencies: []
allow_failure: false
script: |
cme check dpkg-copyright
dpkg-control:
stage: check
tags:
- cme
dependencies: []
allow_failure: true
script:
- wrap-and-sort --keep-first --trailing-comma # terrible way to fix "Cannot parse: ''" in "cme check dpkg-control".
- cme check dpkg-control
## Build
testing_unstable-amd64:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
2018-05-06 09:22:57 +05:30
- ${ORIGTAR_CMD}
2018-05-06 00:23:52 +05:30
- ${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:
2018-05-06 09:22:57 +05:30
- ${ORIGTAR_CMD}
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:
2018-05-06 09:22:57 +05:30
- ${ORIGTAR_CMD}
2018-05-06 00:23:52 +05:30
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/unstable-amd64.tgz
- ${LINTIAN_CMD}