summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:45:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:45:20 +0000
commit9a08cbfcc1ef900a04580f35afe2a4592d7d6030 (patch)
tree004cc7027bca2f2c0bcb5806527c8e0c48df2d6e /.gitlab-ci.yml
parentInitial commit. (diff)
downloaddpkg-9a08cbfcc1ef900a04580f35afe2a4592d7d6030.tar.xz
dpkg-9a08cbfcc1ef900a04580f35afe2a4592d7d6030.zip
Adding upstream version 1.19.8.upstream/1.19.8upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..cf06409
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,54 @@
+image: debian:buster
+
+before_script:
+ - apt update -qq
+ - apt install -qq -y eatmydata
+ - eatmydata apt install -qq -y --no-install-recommends
+ git ca-certificates
+ - eatmydata apt build-dep -qq -y .
+ - ./autogen
+
+# Test whether the release can be done.
+dist-check:
+ stage: test
+ script:
+ - eatmydata apt install -qq -y --no-install-recommends
+ libmodule-build-perl
+ - ./configure
+ - make distcheck
+
+# Test whether the unit tests pass.
+unit-tests:
+ stage: test
+ script:
+ - eatmydata apt install -qq -y --no-install-recommends
+ fakeroot gpg cppcheck shellcheck aspell aspell-en codespell i18nspector
+ libtest-strict-perl libtest-minimumversion-perl libtest-perl-critic-perl
+ libtest-pod-perl libtest-pod-coverage-perl libtest-spelling-perl
+ libtest-synopsis-perl
+ - ./configure
+ - make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+ AUTHOR_TESTING=1
+
+# Test whether the unit tests pass on a VPATH build.
+vpath-tests:
+ stage: test
+ script:
+ - mkdir -p build-tree
+ - cd build-tree
+ - ../configure
+ - make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+
+# Test whether the external functional tests pass.
+func-tests:
+ stage: test
+ script:
+ - ./configure
+ - make
+ - git clone https://git.dpkg.org/git/dpkg/dpkg-tests.git
+ - cd dpkg-tests
+ - echo "DPKG_SERIES = 1.18.x" >>.pkg-tests.conf
+ - echo "DPKG_TESTSUITE_OPTIONS = debug not-root" >>.pkg-tests.conf
+ - echo "DPKG_BUILDTREE = $(realpath ..)" >>.pkg-tests.conf
+ - ./db-regen
+ - eatmydata make test