Merge branch 'salsa-ci-1541037560' into 'master'
Add salsa-ci pipeline
See merge request debian/logbook!16
Iñaki Malerba
5 years ago
0 | # Warning! This file is autogenerated by salsa pipeline bot. Any change made | |
1 | # over this document will be lost. Customization and changes must be made over | |
2 | # the template yaml. | |
0 | 3 | variables: |
1 | DEBFULLNAME: "Iñaki Malerba" | |
2 | DEBEMAIL: "<inaki@malerba.space>" | |
4 | DEBFULLNAME: "Salsa Pipeline" | |
5 | DEBEMAIL: "<salsa-pipeline@debian.org>" | |
3 | 6 | DEBIAN_FRONTEND: noninteractive |
4 | DEB_BUILD_OPTIONS: nocheck | |
5 | 7 | WORKING_DIR: ./debian/output |
6 | 8 | |
7 | 9 | stages: |
12 | 14 | |
13 | 15 | build package: |
14 | 16 | stage: build |
17 | image: registry.salsa.debian.org/salsa-ci-team/images/gbp | |
18 | services: | |
19 | - docker:dind | |
15 | 20 | artifacts: |
16 | 21 | expire_in: 180 day |
17 | 22 | name: "$CI_BUILD_NAME" |
18 | 23 | paths: |
19 | 24 | - ${WORKING_DIR}/ |
20 | 25 | script: |
21 | - apt-get update | |
22 | - apt-get install eatmydata -y | |
23 | - eatmydata apt-get build-dep -y . | |
24 | - eatmydata apt-get install git-buildpackage -y | |
25 | - gbp pull --ignore-branch | |
26 | - gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} -us -uc | |
26 | - gbp pull --ignore-branch --pristine-tar --track-missing | |
27 | - gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} --git-builder='docker-build.sh registry.salsa.debian.org/salsa-ci-team/images/dockerbuilder' | |
27 | 28 | |
28 | 29 | run autopkgtest: |
29 | 30 | stage: test |
31 | image: registry.salsa.debian.org/salsa-ci-team/images/autopkgtest | |
30 | 32 | script: |
31 | - apt-get update && apt-get install autopkgtest eatmydata -y --no-install-recommends | |
32 | - eatmydata autopkgtest ${WORKING_DIR}/*.deb -- null | |
33 | - eatmydata autopkgtest -U ${WORKING_DIR}/*.deb -- null | |
33 | 34 | |
34 | 35 | run lintian: |
35 | 36 | stage: test |
37 | image: registry.salsa.debian.org/salsa-ci-team/images/lintian | |
36 | 38 | script: |
37 | - apt-get update && apt-get install lintian -y --no-install-recommends | |
38 | 39 | - lintian -iI ${WORKING_DIR}/*.changes |
39 | 40 | |
40 | 41 | run reprotest: |
41 | 42 | stage: test |
42 | image: genericpipeline/reprotest-docker | |
43 | image: registry.salsa.debian.org/salsa-ci-team/images/reprotest | |
44 | artifacts: | |
45 | name: "$CI_BUILD_NAME" | |
46 | expire_in: 180 day | |
47 | paths: | |
48 | - ./reprotest.log | |
49 | when: always | |
43 | 50 | script: |
44 | - apt-get update && apt-get install eatmydata -y | |
51 | - apt-get update | |
45 | 52 | - eatmydata apt-get build-dep -y . |
46 | - eatmydata reprotest . -- null | |
47 | tags: | |
48 | - privileged | |
53 | - export DEB_BUILD_OPTIONS=nocheck | |
54 | - eatmydata reprotest --no-diffoscope --min-cpus $(nproc --all) . -- null &> reprotest.log | |
49 | 55 | |
50 | 56 | run piuparts: |
51 | 57 | stage: test |
52 | image: genericpipeline/piuparts-docker | |
58 | image: registry.salsa.debian.org/salsa-ci-team/images/piuparts | |
53 | 59 | services: |
54 | 60 | - docker:dind |
55 | 61 | script: |
60 | 66 | - docker export ${CONTAINER_ID} | tar -C ${CHROOT_PATH} -xf - |
61 | 67 | - mknod -m 666 ${CHROOT_PATH}/dev/urandom c 1 9 |
62 | 68 | - piuparts --hard-link -e ${CHROOT_PATH} ${WORKING_DIR}/*.deb |
63 | tags: | |
64 | - privileged | |
69 | # End of include | |
70 | #################################### Below starts the local customization ################################### |