diff --git a/debian/.gitlab-ci.yml b/debian/.gitlab-ci.yml index 9e334c2647..8862bbd373 100644 --- a/debian/.gitlab-ci.yml +++ b/debian/.gitlab-ci.yml @@ -1,140 +1,37 @@ --- -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 -# 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" +# https://docs.gitlab.com/ce/ci/yaml/#include +include: + - remote: https://salsa.debian.org/onlyjob/ci/raw/master/onlyjob-ci.yml -.origtargz: - script: &origtargz | - origtargz --clean - origtargz --tar-only - rm -rf .git +## "amd64-unstable" always runs by default followed by lintian. -.pre_build: - script: &pre_build | - uname -a - date - env - pwd - mkdir -v -p "${PB_RESULT}" +## Only for arch:all packages: +binary-indep: + extends: .build-indep -stages: - - check - - build +## Job to check Build-Depends versioning: +amd64-testing_unstable: + extends: .build + variables: + arch: amd64 + dist: testing_unstable -dpkg-control: - stage: check - tags: - - cme - dependencies: [] +i386-unstable: + extends: .build + variables: + arch: i386 + dist: unstable + +amd64-experimental: + extends: .build + variables: + arch: amd64 + dist: experimental + +amd64-stable: + extends: .build + when: manual allow_failure: false - script: - - cme check dpkg-control - -dpkg-copyright: - stage: check - tags: - - cme - dependencies: [] - allow_failure: false - script: | - cme check dpkg-copyright - -yamllint: - stage: check - tags: - - yamllint - dependencies: [] - 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: - - pbuilder - - amd64 - dependencies: [] - allow_failure: false - before_script: - - *pre_build - script: - - *origtargz - - ${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: - - *origtargz - - ${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: - - *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} - -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 - + variables: + arch: amd64 + dist: stable diff --git a/debian/.yamllint b/debian/.yamllint deleted file mode 100644 index 688393fc58..0000000000 --- a/debian/.yamllint +++ /dev/null @@ -1,17 +0,0 @@ ---- -extends: default - -rules: - line-length: - level: warning - max: 120 - braces: - level: warning - max-spaces-inside: 8 - trailing-spaces: - level: warning - colons: - level: warning - max-spaces-after: 16 - empty-lines: - level: warning diff --git a/debian/clean b/debian/clean index d50833677f..3f8bf16aa9 100644 --- a/debian/clean +++ b/debian/clean @@ -1,6 +1,5 @@ ## Debian CI: debian/.gitlab-ci.yml -debian/.yamllint lib/tasks/haml-lint.rake lib/tasks/rubocop.rake