From be634f2c6aa1a2b9c3c624ea5f906207d8c33b64 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 6 Aug 2018 04:47:56 +0200 Subject: [PATCH] Travis tweaks * Cache composer downloads between builds. * Don't lint the files in the `vendor` directory. --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 39e1bbb7..dcb147cf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,13 @@ sudo: false dist: trusty +cache: + directories: + # Cache directory for older Composer versions. + - $HOME/.composer/cache/files + # Cache directory for more recent Composer versions. + - $HOME/.cache/composer/files + # Declare project language. # @link http://about.travis-ci.org/docs/user/languages/php/ language: php @@ -40,7 +47,7 @@ before_script: # All commands must exit with code 0 on success. Anything else is considered failure. script: # Search for PHP syntax errors. - - find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l + - find -L . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l # WordPress Coding Standards. # @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards # @link https://github.com/squizlabs/PHP_CodeSniffer