[Pkg-samba-maint] [Git][samba-team/samba][add-salsa-ci] 3 commits: Add ldb from experimental to build package and run puiparts

Mathieu Parent gitlab at salsa.debian.org
Fri Oct 12 19:44:52 BST 2018


Mathieu Parent pushed to branch add-salsa-ci at Debian Samba Team / samba


Commits:
e40cbc2d by Mathieu Parent at 2018-10-12T18:44:27Z
Add ldb from experimental to build package and run puiparts

- - - - -
59b7d53b by Mathieu Parent at 2018-10-12T18:44:32Z
gitlab-ci.yml: Allow samba daemons to start during autopkgtest

Removing /usr/sbin/policy-rc.d only prints:
invoke-rc.d: could not determine current runlevel
invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block.

- - - - -
922f3ba1 by Mathieu Parent at 2018-10-12T18:44:32Z
Allow to remove sudo without a root password (needed for the "run piuparts" job)

- - - - -


2 changed files:

- debian/gitlab-ci.yml
- debian/gitlab-ci.yml.tpl


Changes:

=====================================
debian/gitlab-ci.yml
=====================================
@@ -6,6 +6,7 @@ variables:
   DEBEMAIL: "<salsa-pipeline at 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;for conf in $(find /etc/apt/sources.list.d/ /etc/apt/preferences.d/ -mindepth 1 -maxdepth 1); do echo "Copying $conf"; cat "$conf" | eval docker exec -i ${DEBIAN_VARENVS} ${CONTAINER_ID} tee "$conf"; done@' /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,12 @@ 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='deb http://deb.debian.org/debian experimental main'
+    - cp -aTv /etc/apt/preferences.d  ${CHROOT_PATH}/etc/apt/preferences.d
+    - 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"


=====================================
debian/gitlab-ci.yml.tpl
=====================================
@@ -1,3 +1,6 @@
 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"



View it on GitLab: https://salsa.debian.org/samba-team/samba/compare/e0f2330a6414bc5c06f444c598a91da7a3ac7ae5...922f3ba1a6a261b20f2d2b213415b83a7497dd78

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/compare/e0f2330a6414bc5c06f444c598a91da7a3ac7ae5...922f3ba1a6a261b20f2d2b213415b83a7497dd78
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20181012/2e8f4d2e/attachment-0001.html>


More information about the Pkg-samba-maint mailing list