summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:58:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:58:51 +0000
commitcbffab246997fb5a06211dfb706b54e5ae5bb59f (patch)
tree0573c5d96f58d74d76a49c0f2a70398e389a36d3 /.gitlab-ci.yml
parentInitial commit. (diff)
downloaddpkg-cbffab246997fb5a06211dfb706b54e5ae5bb59f.tar.xz
dpkg-cbffab246997fb5a06211dfb706b54e5ae5bb59f.zip
Adding upstream version 1.21.22.upstream/1.21.22upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..cd6abd2
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,51 @@
+image: debian:sid
+
+variables:
+ FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1
+
+before_script:
+ - apt update -qq
+ - apt install -qq -y eatmydata
+ - eatmydata apt -P pkg.dpkg.author-release build-dep -qq -y .
+ - ./autogen
+
+# Test whether the release can be done.
+dist-check:
+ stage: test
+ script:
+ - ./configure
+ - make distcheck
+
+# Test whether the unit tests pass.
+unit-tests:
+ stage: test
+ script:
+ - eatmydata apt -P pkg.dpkg.author-testing build-dep -qq -y .
+ - ./configure
+ - make authorcheck TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+
+# 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 we can build the shared library.
+shared-tests:
+ stage: test
+ script:
+ - AUTHOR_TESTING=1 ./configure --enable-shared
+ - make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+
+# Test whether the functional tests pass.
+func-tests:
+ stage: test
+ script:
+ - ./configure
+ - make
+ - cd tests
+ - echo "DPKG_BUILDTREE = $(realpath ..)" >>.pkg-tests.conf
+ - eatmydata make test