]> granicus.if.org Git - fortune-mod/commitdiff
add cache to travis cpan modules
authorShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 08:53:41 +0000 (11:53 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 08:53:41 +0000 (11:53 +0300)
.travis.yml

index bb3161048aafa1a8442bc12f368c124e794bdb79..cc297ad3d7ee54ee2d44eadcaa4e9092072a0d4c 100644 (file)
@@ -11,6 +11,10 @@ addons:
             - valgrind
             - xz-utils
             - zip
+cache:
+    directories:
+        - $HOME/perl_modules
+        - $HOME/tidyall_d
 os: linux
 dist: bionic
 before_install:
@@ -18,7 +22,7 @@ before_install:
     - eval "$(perl -Mlocal::lib=$HOME/perl_modules)"
     - cpanm 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
 install:
-    # Required to avoid defaul travis "cpanm ." booboo.
+    # Required to avoid default travis "cpanm ." booboo.
     - true
 language: perl
 perl:
@@ -27,4 +31,3 @@ script:
     - "export FORTUNE_TEST_TIDY=1"
     - "perl CI-testing/continuous-integration-testing.pl"
     - "rm -fr B"
-sudo: false