Skip to content
Commits on Source (5)
......@@ -6,6 +6,7 @@ variables:
DEBEMAIL: "<salsa-pipeline@debian.org>"
DEBIAN_FRONTEND: noninteractive
WORKING_DIR: ./debian/output
SUDO_FORCE_REMOVE: "yes"
stages:
- build
......@@ -24,6 +25,9 @@ build package:
paths:
- ${WORKING_DIR}/
script:
# https://salsa.debian.org/salsa-ci-team/images/merge_requests/9
- sed -i 's@^\(done\)@\1;eval docker cp /etc/apt/sources.list.d/./ ${CONTAINER_ID}:/etc/apt/sources.list.d/; eval docker cp /etc/apt/preferences.d/./ ${CONTAINER_ID}:/etc/apt/preferences.d/@' /usr/local/bin/docker-build.sh
- cat /usr/local/bin/docker-build.sh
- 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'
......@@ -31,6 +35,8 @@ run autopkgtest:
stage: test
image: registry.salsa.debian.org/salsa-ci-team/images/autopkgtest
script:
- rm /usr/sbin/policy-rc.d
- ln -s /bin/true /usr/sbin/policy-rc.d
- eatmydata autopkgtest -U ${WORKING_DIR}/*.deb -- null
run lintian:
......@@ -66,6 +72,13 @@ run piuparts:
- 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
# https://salsa.debian.org/salsa-ci-team/pipeline/merge_requests/29
- TESTDEBS_REPOS=
- TESTDEBS_REPOS="$TESTDEBS_REPOS --testdebs-repo='deb http://deb.debian.org/debian experimental main'"
- cp -aTv /etc/apt/preferences.d ${CHROOT_PATH}/etc/apt/preferences.d
- eval piuparts --hard-link -e ${CHROOT_PATH} ${TESTDEBS_REPOS} ${WORKING_DIR}/*.deb
# End of include
#################################### Below starts the local customization ###################################
before_script:
- echo 'deb http://deb.debian.org/debian experimental main' > /etc/apt/sources.list.d/experimental.list
- "echo 'Package: ldb-tools libldb* python*-ldb*\nPin: release a=experimental\nPin-Priority: 500' > /etc/apt/preferences.d/experimental.pref"
include: https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
# end of salsa pipeline bot parser
before_script:
- echo 'deb http://deb.debian.org/debian experimental main' > /etc/apt/sources.list.d/experimental.list
- "echo 'Package: ldb-tools libldb* python*-ldb*\nPin: release a=experimental\nPin-Priority: 500' > /etc/apt/preferences.d/experimental.pref"