Package list logbook / cd557e4
Merge branch 'add-gci' into 'master' Add gci See merge request debian/logbook!1 Agustin Henze 3 years ago
3 changed file(s) with 78 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: unittests
1 Depends:
2 python3-pip,
3 libzmq3-dev,
4 python3-setuptools,
5 python3-pytest,
6 python3-wheel,
7 redis-server
0 sed -i '/bind 127.0.0.1/d' /etc/redis/redis.conf
1 /etc/init.d/redis-server restart
2
3 pip3 install riemann-client
4 pip3 install -e .[all]
5 py.test-3 -r s tests