]> granicus.if.org Git - fortune-mod/blobdiff - .travis.yml
gh actions #3: win32 fix pacman
[fortune-mod] / .travis.yml
index 1ca34ea2490b684d9ca0a09fc0509c5da06c31cb..087018961afb90840d081e7b42b2ffb574e4ecbb 100644 (file)
@@ -1,15 +1,39 @@
-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 install -y ack-grep cmake cpanminus gcc libperl-dev librecode-dev perl make valgrind
-    - sudo dpkg-divert --local --divert /usr/bin/ack --rename --add /usr/bin/ack-grep
-    # See https://rt.cpan.org/Public/Bug/Display.html?id=122875 .
-    - sudo cpanm List::MoreUtils::XS
-    - sudo cpanm File::Find::Object IO::All List::MoreUtils 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::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"
-    # No longer working.
-    # - "cd fortune-mod/ && make check && cd .."