summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2019-09-02 14:40:29 -0700
committerRuss Allbery <eagle@eyrie.org>2019-09-02 14:40:29 -0700
commitbe9a1c74d7ca24b8068d607331d15db1ba25b976 (patch)
treea19a5a6a023deb2fc7d0de6c778c8fd66996f6f7 /.travis.yml
parentbfe97b5ddad0d72dd0c807b677755b3c19d1cb79 (diff)
Update Travis-CI handling of some Perl test libraries
Perl::Critic has some issues being installed correctly on Travis-CI and Perl::Tidy needs to be up-to-date to get the latest formatting rules. Install them manually with cpanm in the Travis-CI setup.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 4f9bd9e..74e5bf9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,9 +6,22 @@ compiler:
- gcc
- clang
+# Perl::Tidy, Perl::Critic, and Test::Perl::Critic are installed
+# separately to get the latest version, since they sometimes change
+# formatting and style rules compared to the version in Ubuntu.
+# Test::MinimumVersion has to be included since it installs Perl::Critic.
+#
+# Allow the installation of Perl::Critic and Test::Perl::Critic to fail,
+# since this seems to fail regularly on Travis-CI. (We'll just skip the
+# test if it won't install.)
+
before_install:
- sudo apt-get update -qq
- - sudo apt-get install -y krb5-config libevent-dev libkrb5-dev libmodule-build-perl libpcre3-dev libtest-pod-perl libtest-minimumversion-perl libtest-pod-coverage-perl libtest-strict-perl libtest-synopsis-perl perl php5-cli pkg-config python-all-dev ruby-all-dev
+ - sudo apt-get install -y krb5-config libevent-dev libkrb5-dev libmodule-build-perl libpcre3-dev libtest-pod-perl libtest-pod-coverage-perl libtest-strict-perl libtest-synopsis-perl perl php5-cli pkg-config python-all-dev ruby-all-dev
+ - sudo cpanm Perl::Tidy
+ - sudo cpanm Perl::Critic || true
+ - sudo cpanm Test::MinimumVersion || true
+ - sudo cpanm Test::Perl::Critic || true
env: AUTHOR_TESTING=1
script: ./bootstrap && ./configure --enable-perl --enable-php --enable-python --enable-ruby && make warnings && make check