Package list logbook / f39e035
Add GCI generic template. Iñaki Malerba 3 years ago
3 changed file(s) with 66 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 variables:
1 DEBFULLNAME: "Iñaki Malerba"
2 DEBEMAIL: "<inaki@malerba.space>"
3 DEBIAN_FRONTEND: noninteractive
4 DEB_BUILD_OPTIONS: nocheck
5 WORKING_DIR: ./debian/output
6
7 stages:
8 - build
9 - test
10
11 image: debian:unstable
12
13 build package:
14 stage: build
15 artifacts:
16 expire_in: 180 day
17 name: "$CI_BUILD_NAME"
18 paths:
19 - ${WORKING_DIR}/
20 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
27
28 run autopkgtest:
29 stage: test
30 script:
31 - apt-get update && apt-get install autopkgtest eatmydata -y --no-install-recommends
32 - eatmydata autopkgtest ${WORKING_DIR}/*.deb -- null
33
34 run lintian:
35 stage: test
36 script:
37 - apt-get update && apt-get install lintian -y --no-install-recommends
38 - lintian -iI ${WORKING_DIR}/*.changes
39
40 run reprotest:
41 stage: test
42 image: inakimalerba/reprotest-docker
43 script:
44 - apt-get update && apt-get install eatmydata -y
45 - eatmydata apt-get build-dep -y .
46 - eatmydata reprotest . -- null
47 tags:
48 - privileged
49
50 run piuparts:
51 stage: test
52 image: agustinhenze/piuparts-docker
53 services:
54 - docker:dind
55 script:
56 - CHROOT_PATH=/tmp/debian-unstable
57 - CONTAINER_ID=$(docker run --rm -d debian:unstable sleep infinity)
58 - docker exec ${CONTAINER_ID} bash -c "apt-get update && apt-get install eatmydata -y"
59 - mkdir -p ${CHROOT_PATH}
60 - docker export ${CONTAINER_ID} | tar -C ${CHROOT_PATH} -xf -
61 - piuparts --hard-link -e ${CHROOT_PATH} ${WORKING_DIR}/*.deb
62 tags:
63 - privileged
0 Tests: dummy