addons:
apt:
packages:
+ - asciidoc
- cmake
- cpanminus
+ - dbtoepub
+ - docbook-xsl
+ - docbook-xsl-ns
- gcc
- libperl-dev
- librecode-dev
- - perl
- make
+ - perl
- valgrind
-os: linux
-dist: xenial
+ - xsltproc
+ - xz-utils
+ - zip
before_install:
- - sudo cpanm File::Find::Object IO::All List::Util Test::Differences Test::RunValgrind
+ - cpanm local::lib
+ - eval "$(perl -Mlocal::lib=$HOME/perl_modules)"
+ - cpanm App::Docmake Code::TidyAll::Plugin::ClangFormat Code::TidyAll::Plugin::Flake8 Code::TidyAll::Plugin::TestCount File::Find::Object List::Util Path::Tiny Perl::Critic Perl::Tidy Test::Code::TidyAll Test::Differences Test::RunValgrind Test::TrailingSpace Test::Trap
+cache:
+ directories:
+ - $HOME/perl_modules
+ - $HOME/tidyall_d
+dist: focal
+install:
+ # Required to avoid default travis "cpanm ." booboo.
+ - "true"
+language: perl
+os: linux
+perl:
+ - "5.30"
script:
- - "mkdir B && cd B && cmake ../fortune-mod && make && make check && cd .."
+ - "perl -ln -i -E 'print unless /^\\[ClangFormat\\]$/../^$/' fortune-mod/.tidyallrc"
+ - "export FORTUNE_TEST_TIDY=1"
+ - "perl CI-testing/continuous-integration-testing.pl"
- "rm -fr B"