aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-10-17 18:46:08 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-10-17 19:34:42 +0300
commit9ace1e0519bda09def77746c22ce952824074980 (patch)
treef6571e53f5ee1f72dd082ea0c6d29516e83dca93 /.circleci
parent3b7b3ef56fc0b2aa92f6bf134bd1e9d127cefcca (diff)
downloadrspamd-9ace1e0519bda09def77746c22ce952824074980.tar.gz
rspamd-9ace1e0519bda09def77746c22ce952824074980.zip
[Test] Add TidyAll checks
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 039954f26..83316945a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -153,6 +153,40 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}
- run: ./node_modules/.bin/eslint -v && ./node_modules/.bin/eslint ./
+ tidy:
+ docker:
+ - image: buildpack-deps:latest
+ steps:
+ - run:
+ name: Exporting env vars
+ command: |
+ cat >> $BASH_ENV <<EOF
+ export PATH=$PATH:$HOME/perl5/bin
+ export PERL_CPANM_OPT=--local-lib=$HOME/perl5
+ export PERL5LIB=$HOME/perl5/lib/perl5:$PERL5LIB
+ EOF
+ - checkout
+
+ - restore_cache:
+ key: v0-tidyall_dependencies
+ - run:
+ name: Installing cpanm
+ command: 'curl -L https://cpanmin.us | perl - App::cpanminus'
+ - run:
+ name: Installing CPAN dependencies
+ command: |
+ cpanm --quiet --notest \
+ Code::TidyAll \
+ Code::TidyAll::Plugin::Test::Vars \
+ Perl::Critic \
+ Perl::Tidy \
+ Pod::Tidy
+ - save_cache:
+ key: v0-tidyall_dependencies
+ paths:
+ - ~/perl5
+ - run: tidyall -a --check-only
+
send-coverage:
<<: *defaults
steps:
@@ -178,6 +212,7 @@ workflows:
jobs:
- build
- eslint
+ - tidy
- rspamd-test:
requires:
- build