[Pkg-samba-maint] [Git][samba-team/samba][master] 5 commits: Add pipeline template

Mathieu Parent gitlab at salsa.debian.org
Tue Oct 30 17:44:42 GMT 2018


Mathieu Parent pushed to branch master at Debian Samba Team / samba


Commits:
dc22ee9d by Salsa Pipeline Bot at 2018-10-29T21:55:21Z
Add pipeline template

Gbp-Dch: Ignore

- - - - -
4917b157 by Salsa Pipeline Bot at 2018-10-29T21:55:21Z
Initial pipeline

Gbp-Dch: Ignore

- - - - -
a180b99f by Mathieu Parent at 2018-10-29T21:55:21Z
debian/gitlab-ci.yml: Use ldb from experimental

- - - - -
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

- - - - -
82dd3443 by Mathieu Parent at 2018-10-30T17:44:36Z
Merge branch 'add-salsa-ci' into 'master'

Add salsa-ci pipeline

See merge request samba-team/samba!10
- - - - -


2 changed files:

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


Changes:

=====================================
debian/gitlab-ci.yml
=====================================
@@ -0,0 +1,77 @@
+# 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: "<salsa-pipeline at debian.org>"
+  DEBIAN_FRONTEND: noninteractive
+  WORKING_DIR: ./debian/output
+
+stages:
+  - build
+  - test
+
+image: debian:unstable
+
+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'
+
+run autopkgtest:
+  stage: test
+  image: registry.salsa.debian.org/salsa-ci-team/images/autopkgtest
+  script:
+    - eatmydata autopkgtest -U ${WORKING_DIR}/*.deb -- null
+
+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/sathieu/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
+    - 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:
+  - 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
=====================================
@@ -0,0 +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/2dd99561eb70af374ae0c232387a4575f909e342...82dd34435ee01b586cc5f83fc4554ff6ee6bdf70

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/compare/2dd99561eb70af374ae0c232387a4575f909e342...82dd34435ee01b586cc5f83fc4554ff6ee6bdf70
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/eac7285d/attachment-0001.html>


More information about the Pkg-samba-maint mailing list