From 0bbc8ab933e62c1fa6d548e879ae6d98cbd461f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Sun, 11 Nov 2018 14:54:30 +0100 Subject: updated Salsa CI --- debian/gitlab-ci.yml | 77 ++++++++-------------------------------------------- 1 file changed, 11 insertions(+), 66 deletions(-) (limited to 'debian') diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml index aee817e..b7dc52a 100644 --- a/debian/gitlab-ci.yml +++ b/debian/gitlab-ci.yml @@ -1,71 +1,16 @@ -# Warning! This file is autogenerated by salsa pipeline bot. Any change made -# over this document will be lost. Customization and changes must be made over -# the template yaml. -variables: - DEBFULLNAME: "Salsa Pipeline" - DEBEMAIL: "" - DEBIAN_FRONTEND: noninteractive - WORKING_DIR: ./debian/output +include: https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml -stages: - - build - - test +build: + extends: .build-unstable -image: debian:unstable +reprotest: + extends: .test-reprotest -build package: - stage: build - image: registry.salsa.debian.org/salsa-ci-team/images/gbp - services: - - docker:dind - artifacts: - expire_in: 180 day - name: "$CI_BUILD_NAME" - paths: - - ${WORKING_DIR}/ - script: - - gbp pull --ignore-branch --pristine-tar --track-missing - - gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} --git-builder='docker-build.sh registry.salsa.debian.org/salsa-ci-team/images/dockerbuilder' +lintian: + extends: .test-lintian -run autopkgtest: - stage: test - image: registry.salsa.debian.org/salsa-ci-team/images/autopkgtest - script: - - eatmydata autopkgtest -U ${WORKING_DIR}/*.deb -- null +autopkgtest: + extends: .test-autopkgtest -run lintian: - stage: test - image: registry.salsa.debian.org/salsa-ci-team/images/lintian - script: - - lintian -iI ${WORKING_DIR}/*.changes - -run reprotest: - stage: test - image: registry.salsa.debian.org/salsa-ci-team/images/reprotest - artifacts: - name: "$CI_BUILD_NAME" - expire_in: 180 day - paths: - - ./reprotest.log - when: always - script: - - apt-get update - - eatmydata apt-get build-dep -y . - - export DEB_BUILD_OPTIONS=nocheck - - eatmydata reprotest --no-diffoscope --min-cpus $(nproc --all) . -- null &> reprotest.log - -run piuparts: - stage: test - image: registry.salsa.debian.org/salsa-ci-team/images/piuparts - services: - - docker:dind - script: - - CHROOT_PATH=/tmp/debian-unstable - - CONTAINER_ID=$(docker run --rm -d debian:unstable sleep infinity) - - docker exec ${CONTAINER_ID} bash -c "apt-get update && apt-get install eatmydata -y" - - mkdir -p ${CHROOT_PATH} - - docker export ${CONTAINER_ID} | tar -C ${CHROOT_PATH} -xf - - - mknod -m 666 ${CHROOT_PATH}/dev/urandom c 1 9 - - piuparts --hard-link -e ${CHROOT_PATH} ${WORKING_DIR}/*.deb -# End of include -#################################### Below starts the local customization ################################### +piuparts: + extends: .test-piuparts -- cgit v1.2.3