Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #757 from TGMPA/feature/travis-tweaks
Browse files Browse the repository at this point in the history
Travis tweaks
  • Loading branch information
GaryJones committed Aug 6, 2018
2 parents 7e67906 + be634f2 commit f67662d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f67662d

Please sign in to comment.