[PATCH 1/2] audit-testsuite: use our own version of perltidy in the Travis CI tests

Paul Moore paul at paul-moore.com
Tue Sep 24 22:17:59 UTC 2019


From: Paul Moore <paul at paul-moore.com>

Unfortunately the perltidy results differ between moden distros and the
current Travis CI environment.  This patch attempts to address this by
using the current upstream perltidy in the Travis CI tests.

Signed-off-by: Paul Moore <paul at paul-moore.com>
---
 .travis.yml |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 406f4b8..d6eeace 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,10 +6,18 @@ addons:
   apt:
     packages:
       - astyle
-      - perltidy
       - python-pip
       - gcc-multilib
 
+before_install:
+  # FYI: known good with HEAD at 8551fc60fc515cd290ba38ee8c758c1f4df52b56
+  - git clone https://github.com/perltidy/perltidy.git perltidy
+  - |
+    (cd perltidy &&
+     perl Makefile.PL &&
+     make &&
+     sudo make install)
+
 install:
   - sudo pip install yapf
 




More information about the Linux-audit mailing list