From c65627b36f29991c8dff5a9929039ecd97a07a50 Mon Sep 17 00:00:00 2001
From: Christoph Berg <myon@debian.org>
Date: Sat, 8 Jun 2019 13:22:16 +0200
Subject: [PATCH] gitlab/gitlab-ci.yml: Fail on lintian errors.

---
 debian/changelog     | 2 +-
 gitlab/gitlab-ci.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 679391a2..4711992c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
 postgresql-common (202) UNRELEASED; urgency=medium
 
-  * gitlab/gitlab-ci.yml: Run blhc.
+  * gitlab/gitlab-ci.yml: Run blhc; fail on lintian errors.
 
  -- Christoph Berg <myon@debian.org>  Fri, 07 Jun 2019 14:46:05 +0200
 
diff --git a/gitlab/gitlab-ci.yml b/gitlab/gitlab-ci.yml
index 2a746794..976ace61 100644
--- a/gitlab/gitlab-ci.yml
+++ b/gitlab/gitlab-ci.yml
@@ -40,7 +40,7 @@ build:unstable: { <<: *build, image: 'debian:sid' }
     - apt-get -q update
     - apt-get -y --no-install-recommends install lintian
   script:
-    - lintian --info --display-info deb/*.changes 2>&1 | tee lintian.log
+    - bash -c 'set -o pipefail; lintian --info --display-info deb/*.changes 2>&1 | tee lintian.log'
   artifacts:
     paths: ['lintian.log']
 
-- 
GitLab