Dpkg::OpenPGP::Backend::GnuPG: Fallback to use «gpg dearmor» if present
[dpkg.git] / .gitlab-ci.yml
blobcd6abd26cd58d9f3ed764af91cf05b741341bc55
1 image: debian:sid
3 variables:
4   FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1
6 before_script:
7   - apt update -qq
8   - apt install -qq -y eatmydata
9   - eatmydata apt -P pkg.dpkg.author-release build-dep -qq -y .
10   - ./autogen
12 # Test whether the release can be done.
13 dist-check:
14   stage: test
15   script:
16     - ./configure
17     - make distcheck
19 # Test whether the unit tests pass.
20 unit-tests:
21   stage: test
22   script:
23     - eatmydata apt -P pkg.dpkg.author-testing build-dep -qq -y .
24     - ./configure
25     - make authorcheck TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
27 # Test whether the unit tests pass on a VPATH build.
28 vpath-tests:
29   stage: test
30   script:
31     - mkdir -p build-tree
32     - cd build-tree
33     - ../configure
34     - make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
36 # Test whether we can build the shared library.
37 shared-tests:
38   stage: test
39   script:
40     - AUTHOR_TESTING=1 ./configure --enable-shared
41     - make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
43 # Test whether the functional tests pass.
44 func-tests:
45   stage: test
46   script:
47     - ./configure
48     - make
49     - cd tests
50     - echo "DPKG_BUILDTREE = $(realpath ..)" >>.pkg-tests.conf
51     - eatmydata make test