File: gitlab-ci.yml

package info (click to toggle)
docopt 0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 284 kB
  • sloc: python: 1,037; makefile: 10
file content (71 lines) | stat: -rw-r--r-- 2,119 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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@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
  artifacts:
    expire_in: 180 day
    name: "$CI_BUILD_NAME"
    paths:
        - ${WORKING_DIR}/
  script:
    - apt-get update
    - eatmydata apt-get build-dep -y .
    - gbp pull --ignore-branch
    - gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} -us -uc

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 . -- null &> reprotest.log

run piuparts:
  stage: test
  image: registry.salsa.debian.org/salsa-ci-team/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
    - piuparts --hard-link -e ${CHROOT_PATH} ${WORKING_DIR}/*.deb
# End of include
#################################### Below starts the local customization ###################################