summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-03 15:58:26 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-03 15:58:26 -0300
commit8a47b5ddffb66dd5f62033abd65126f3bb753d35 (patch)
treec24ee02654083c373d3dec30ebfe8a82b527b6f8 /.gitlab-ci.yml
parentc1a17e31706c5b944442b0f8b43aa0147c770aef (diff)
downloadserverdata-8a47b5ddffb66dd5f62033abd65126f3bb753d35.tar.gz
serverdata-8a47b5ddffb66dd5f62033abd65126f3bb753d35.tar.bz2
serverdata-8a47b5ddffb66dd5f62033abd65126f3bb753d35.tar.xz
serverdata-8a47b5ddffb66dd5f62033abd65126f3bb753d35.zip
Add ci checks for bad new lines or trailing white spaces
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c34b06fcb..b1b219fb5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ variables:
.build_test:
stage: build
+
script:
- export CC=gcc-6
- ./.tools/jobs/install.sh "mysql-client
@@ -173,6 +174,29 @@ licensecheck:
- ./.tools/jobs/licensecheck.sh
image: debian:stable
+newlines:
+ stage: test
+ script:
+ - ./.tools/jobs/install.sh "dos2unix git-core"
+ - ./.tools/jobs/newlines.sh
+ image: debian:unstable
+ artifacts:
+ untracked: true
+ when: always
+ expire_in: 3 week
+
+spaces:
+ stage: test
+ script:
+ - ./.tools/jobs/install.sh "sed git-core"
+ - cd npc
+ - ../.tools/jobs/spaces.sh
+ image: debian:unstable
+ artifacts:
+ untracked: true
+ when: always
+ expire_in: 3 week
+
ok_job:
stage: ok
script: