From bb3c26b0d8815d4289d0b60e23583096db59f24e Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Mon, 23 Sep 2019 10:26:53 +0000 Subject: [PATCH] ci: Build .deb --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e29afae3..de2eb047 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,26 @@ build_meson: - meson . _build/ -Ddepdatadir=/usr/share - ninja -C _build install +build_deb: + <<: *tags + stage: build + artifacts: + paths: + - "*.deb" + script: + - apt-get -y install devscripts + - debuild -i -us -uc -b + - cp ../*.deb . + +test_lintian: + <<: *tags + stage: test + dependencies: + - build_deb + script: + - apt-get -y install lintian + - lintian *.deb + test: <<: *tags stage: test