CI: corrections & new tests
This commit is contained in:
parent
97b3bd362a
commit
6328108eda
1 changed files with 47 additions and 13 deletions
60
debian/.gitlab-ci.yml
vendored
60
debian/.gitlab-ci.yml
vendored
|
@ -10,6 +10,11 @@ variables:
|
|||
AUTOCLEANAPTCACHE: "yes"
|
||||
USE_PDEBUILD_INTERNAL: "yes"
|
||||
|
||||
.origtargz:
|
||||
script: &origtargz |
|
||||
${ORIGTAR_CMD}
|
||||
# rm -rf .git
|
||||
|
||||
.pre_build:
|
||||
script: &pre_build |
|
||||
uname -a
|
||||
|
@ -22,14 +27,15 @@ stages:
|
|||
- check
|
||||
- build
|
||||
|
||||
yamllint:
|
||||
dpkg-control:
|
||||
stage: check
|
||||
tags:
|
||||
- yamllint
|
||||
- cme
|
||||
dependencies: []
|
||||
allow_failure: false
|
||||
script: |
|
||||
yamllint -c debian/.yamllint debian/.*.yml
|
||||
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
|
||||
|
@ -40,18 +46,31 @@ dpkg-copyright:
|
|||
script: |
|
||||
cme check dpkg-copyright
|
||||
|
||||
dpkg-control:
|
||||
yamllint:
|
||||
stage: check
|
||||
tags:
|
||||
- cme
|
||||
- yamllint
|
||||
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
|
||||
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:
|
||||
|
@ -62,7 +81,7 @@ testing_unstable-amd64:
|
|||
before_script:
|
||||
- *pre_build
|
||||
script:
|
||||
- ${ORIGTAR_CMD}
|
||||
- *origtargz
|
||||
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/testing_unstable-amd64.tgz
|
||||
- ${LINTIAN_CMD}
|
||||
|
||||
|
@ -76,7 +95,7 @@ unstable-i386:
|
|||
before_script:
|
||||
- *pre_build
|
||||
script:
|
||||
- ${ORIGTAR_CMD}
|
||||
- *origtargz
|
||||
- ${PDEBUILD_CMD} --architecture i386 -- --basetgz /var/cache/pbuilder/unstable-i386.tgz
|
||||
|
||||
unstable-amd64:
|
||||
|
@ -89,6 +108,21 @@ unstable-amd64:
|
|||
before_script:
|
||||
- *pre_build
|
||||
script:
|
||||
- ${ORIGTAR_CMD}
|
||||
- *origtargz
|
||||
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/unstable-amd64.tgz
|
||||
- ${LINTIAN_CMD}
|
||||
|
||||
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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue