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"
|
AUTOCLEANAPTCACHE: "yes"
|
||||||
USE_PDEBUILD_INTERNAL: "yes"
|
USE_PDEBUILD_INTERNAL: "yes"
|
||||||
|
|
||||||
|
.origtargz:
|
||||||
|
script: &origtargz |
|
||||||
|
${ORIGTAR_CMD}
|
||||||
|
# rm -rf .git
|
||||||
|
|
||||||
.pre_build:
|
.pre_build:
|
||||||
script: &pre_build |
|
script: &pre_build |
|
||||||
uname -a
|
uname -a
|
||||||
|
@ -22,14 +27,15 @@ stages:
|
||||||
- check
|
- check
|
||||||
- build
|
- build
|
||||||
|
|
||||||
yamllint:
|
dpkg-control:
|
||||||
stage: check
|
stage: check
|
||||||
tags:
|
tags:
|
||||||
- yamllint
|
- cme
|
||||||
dependencies: []
|
dependencies: []
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
script: |
|
script:
|
||||||
yamllint -c debian/.yamllint debian/.*.yml
|
- wrap-and-sort --keep-first --trailing-comma # terrible way to fix "Cannot parse: ''" in "cme check dpkg-control".
|
||||||
|
- cme check dpkg-control
|
||||||
|
|
||||||
dpkg-copyright:
|
dpkg-copyright:
|
||||||
stage: check
|
stage: check
|
||||||
|
@ -40,18 +46,31 @@ dpkg-copyright:
|
||||||
script: |
|
script: |
|
||||||
cme check dpkg-copyright
|
cme check dpkg-copyright
|
||||||
|
|
||||||
dpkg-control:
|
yamllint:
|
||||||
stage: check
|
stage: check
|
||||||
tags:
|
tags:
|
||||||
- cme
|
- yamllint
|
||||||
dependencies: []
|
dependencies: []
|
||||||
allow_failure: true
|
allow_failure: false
|
||||||
script:
|
script: |
|
||||||
- wrap-and-sort --keep-first --trailing-comma # terrible way to fix "Cannot parse: ''" in "cme check dpkg-control".
|
yamllint -c debian/.yamllint debian/.*.yml
|
||||||
- cme check dpkg-control
|
|
||||||
|
|
||||||
## Build
|
## 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:
|
testing_unstable-amd64:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
|
@ -62,7 +81,7 @@ testing_unstable-amd64:
|
||||||
before_script:
|
before_script:
|
||||||
- *pre_build
|
- *pre_build
|
||||||
script:
|
script:
|
||||||
- ${ORIGTAR_CMD}
|
- *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}
|
- ${LINTIAN_CMD}
|
||||||
|
|
||||||
|
@ -76,7 +95,7 @@ unstable-i386:
|
||||||
before_script:
|
before_script:
|
||||||
- *pre_build
|
- *pre_build
|
||||||
script:
|
script:
|
||||||
- ${ORIGTAR_CMD}
|
- *origtargz
|
||||||
- ${PDEBUILD_CMD} --architecture i386 -- --basetgz /var/cache/pbuilder/unstable-i386.tgz
|
- ${PDEBUILD_CMD} --architecture i386 -- --basetgz /var/cache/pbuilder/unstable-i386.tgz
|
||||||
|
|
||||||
unstable-amd64:
|
unstable-amd64:
|
||||||
|
@ -89,6 +108,21 @@ unstable-amd64:
|
||||||
before_script:
|
before_script:
|
||||||
- *pre_build
|
- *pre_build
|
||||||
script:
|
script:
|
||||||
- ${ORIGTAR_CMD}
|
- *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}
|
||||||
|
|
||||||
|
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