summaryrefslogtreecommitdiffstats
path: root/debian/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:44:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:44:26 +0000
commit0cde7a370d07f80208bcd29597cf30d5274f38b0 (patch)
treee228a85db87eb0491d2937e213bbbab19826b682 /debian/.gitlab-ci.yml
parentAdding upstream version 2:8.1.0875. (diff)
downloadvim-0cde7a370d07f80208bcd29597cf30d5274f38b0.tar.xz
vim-0cde7a370d07f80208bcd29597cf30d5274f38b0.zip
Adding debian version 2:8.1.0875-5+deb10u2.debian/2%8.1.0875-5+deb10u2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/.gitlab-ci.yml')
-rw-r--r--debian/.gitlab-ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/.gitlab-ci.yml b/debian/.gitlab-ci.yml
new file mode 100644
index 0000000..80c5e28
--- /dev/null
+++ b/debian/.gitlab-ci.yml
@@ -0,0 +1,19 @@
+.build_template: &build
+ only:
+ - branches
+ before_script:
+ - adduser --home /home/ci ci --quiet --disabled-login --gecos "" --uid 1000
+ - apt-get -q update
+ - env DEBIAN_FRONTEND=noninteractive apt-get -q -y -o Debug::pkgProblemResolver=yes build-dep .
+ - env DEBIAN_FRONTEND=noninteractive apt-get -q -y -o Debug::pkgProblemResolver=yes install --no-install-recommends gitpkg fakeroot sudo
+ - rm -rf ../deb-packages/vim
+ - install -d -o ci ../deb-packages ../deb-packages/vim
+ - export UPSTREAM_VERSION=$(dpkg-parsechangelog -SVersion | sed -e 's/^[0-9]*://' -e 's/\(.*\)-[^-]*/\1/')
+ - sudo -u ci gitpkg --keep-unpacked-source "$CI_COMMIT_SHA" v"$UPSTREAM_VERSION"
+ script:
+ - cd ../deb-packages/vim/vim-"$UPSTREAM_VERSION"
+ - sudo -u ci dpkg-buildpackage -us -uc
+
+test:buster:
+ <<: *build
+ image: debian:buster