* debian/gitlab-ci.yml: New file.

This commit is contained in:
Michael Banck 2018-09-23 13:03:52 +02:00
parent 11fbb641e0
commit 53b04dc0a0
2 changed files with 45 additions and 1 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
patroni (1.5.0-3) UNRELEASED; urgency=medium
*
[ Michael Banck ]
* debian/gitlab-ci.yml: New file.
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Sun, 23 Sep 2018 13:03:07 +0200

43
debian/gitlab-ci.yml vendored Normal file
View file

@ -0,0 +1,43 @@
stages:
- build
- autopkgtest
.build: &build
before_script:
- apt-get update
- apt-get -y install devscripts adduser fakeroot sudo
- mk-build-deps -t "apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends" -i -r
- adduser --disabled-password --gecos "" builduser
- chown -R builduser:builduser .
- chown builduser:builduser ..
stage: build
artifacts:
paths:
- built
script:
- sudo -u builduser dpkg-buildpackage -b -rfakeroot
after_script:
- mkdir built
- dcmd mv ../*ges built/
.test: &test
before_script:
- apt-get update
- apt-get -y install autopkgtest
stage: autopkgtest
script:
- autopkgtest built/*ges -- null
build:testing:
<<: *build
image: debian:testing
build:unstable:
<<: *build
image: debian:sid
test:testing:
<<: *test
dependencies:
- build:testing
image: debian:testing
test:unstable:
<<: *test
dependencies:
- build:unstable
image: debian:sid