]> source.dussan.org Git - rspamd.git/commitdiff
Add tidyall checks for perl code
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Thu, 18 Oct 2018 21:06:54 +0000 (17:06 -0400)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Thu, 18 Oct 2018 21:06:54 +0000 (17:06 -0400)
Based on analagous check added to CircleCI:
https://github.com/rspamd/rspamd/commit/9ace1e0519bda09def77746c22ce952824074980

.drone.yml

index 98bd7256271e66cb1d33df97239ad0b355fe162e..732bec96bdcbeaeea193a693c41dac4ed888c40d 100644 (file)
@@ -35,6 +35,14 @@ pipeline:
       - ./node_modules/.bin/eslint -v
       - ./node_modules/.bin/eslint ./
 
+  # Run checks on perl source using tidyall
+  perl-tidyall:
+    # https://github.com/rspamd/rspamd-build-docker/blob/master/perl-tidyall/Dockerfile
+    image: rspamd/ci-perl-tidyall
+    group: build
+    commands:
+      - tidyall --all --root-dir /rspamd/src --check-only --no-cache --data-dir /tmp/tidyall
+
   rspamd-test:
     # https://github.com/rspamd/rspamd-build-docker/blob/master/ubuntu-test/Dockerfile
     image: rspamd/ci-ubuntu-test