[Pkg-samba-maint] [Git][samba-team/samba][add-salsa-ci] gitlab-ci.yaml: piuparts improvements

Mathieu Parent gitlab at salsa.debian.org
Tue Oct 30 15:28:57 GMT 2018


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


Commits:
e3358600 by Mathieu Parent at 2018-10-30T14:55:02Z
gitlab-ci.yaml: piuparts improvements

Copy apt config to allow enabling extra repositories.

We try to match piuparts.debian.org options with the following difference:
- no --warn-on-others as this "could be problematic" "with multiple packages given"

But we kept:
- --warn-on-leftovers-after-purge even if we want a failure, because of #316521

- - - - -


1 changed file:

- debian/gitlab-ci.yml


Changes:

=====================================
debian/gitlab-ci.yml
=====================================
@@ -56,7 +56,7 @@ run reprotest:
 
 run piuparts:
   stage: test
-  image: registry.salsa.debian.org/salsa-ci-team/images/piuparts
+  image: registry.salsa.debian.org/sathieu/images/piuparts
   services:
     - docker:dind
   script:
@@ -66,7 +66,10 @@ 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
+    - mkdir -p ${CHROOT_PATH}/etc-target/apt/sources.list.d ${CHROOT_PATH}/etc-target/apt/preferences.d
+    - cp -aTv /etc/apt/sources.list.d  ${CHROOT_PATH}/etc-target/apt/sources.list.d
+    - cp -aTv /etc/apt/preferences.d  ${CHROOT_PATH}/etc-target/apt/preferences.d
+    - piuparts --scriptsdir /etc/piuparts/scripts --allow-database --warn-on-leftovers-after-purge --hard-link -e ${CHROOT_PATH} ${WORKING_DIR}/*.deb
 # End of include
 #################################### Below starts the local customization ###################################
 before_script:



View it on GitLab: https://salsa.debian.org/samba-team/samba/commit/e3358600f48d141341579951430e38f2e1a16a1d

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/commit/e3358600f48d141341579951430e38f2e1a16a1d
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/20181030/0996c678/attachment-0001.html>


More information about the Pkg-samba-maint mailing list