From 0c0c484f6caedd4ce675640465e59740292660cf Mon Sep 17 00:00:00 2001
From: Marcus Asteborg <maastebo@microsoft.com>
Date: Mon, 15 Jun 2020 13:00:25 -0700
Subject: [PATCH] Add CI to check for trailing whitespaces in merge requests

---
 .gitlab-ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 502b08f27..739ffb4fa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,13 @@ default:
   # Image from https://hub.docker.com/_/gcc/ based on Debian
   image: gcc
 
+whitespace:
+  stage: test
+  only:
+    - merge_requests
+  script:
+    - git diff-tree --check origin/master HEAD
+
 autoconf:
   stage: build
   before_script:
-- 
GitLab