-os: linux
-dist: trusty
+addons:
+ apt:
+ packages:
+ - asciidoc
+ - cmake
+ - cpanminus
+ - dbtoepub
+ - docbook-xsl
+ - docbook-xsl-ns
+ - gcc
+ - libperl-dev
+ - librecode-dev
+ - make
+ - perl
+ - valgrind
+ - xsltproc
+ - xz-utils
+ - zip
before_install:
- - sudo apt-get update -qq
- - sudo apt-get --no-install-recommends install -y cmake cpanminus gcc libperl-dev librecode-dev perl make valgrind
- - sudo cpanm File::Find::Object IO::All List::Util Test::Differences Test::RunValgrind
- - ( a="$(pwd)"; tgt="fortune-mod/cmake/"; mkdir B2 && cd B2 && hg clone https://bitbucket.org/shlomif/shlomif-cmake-modules && cd shlomif-cmake-modules/shlomif-cmake-modules && cp -f "$(pwd)"/Shlomif_Common.cmake "$a"/"$tgt"/ )
+ - 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::Trap
+cache:
+ directories:
+ - $HOME/perl_modules
+ - $HOME/tidyall_d
+dist: bionic
+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 .."
+ - "export FORTUNE_TEST_TIDY=1"
+ - "perl CI-testing/continuous-integration-testing.pl"
- "rm -fr B"