summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMarcus Asteborg <maastebo@microsoft.com>2020-06-15 13:00:25 -0700
committerMarcus Asteborg <maastebo@microsoft.com>2020-06-15 22:15:15 -0700
commit0c0c484f6caedd4ce675640465e59740292660cf (patch)
tree85e16ec05521afd7cc2d67a8b2c94f4e9db8689e /.gitlab-ci.yml
parentb69bfb2a30df65e7f267dd6998276fa3986bd14b (diff)
downloadopus-0c0c484f6caedd4ce675640465e59740292660cf.tar.gz
Add CI to check for trailing whitespaces in merge requests
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 502b08f2..739ffb4f 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: