Skip to content

Commit

Permalink
Merge pull request #263 from Yoast/JRF/CI/phpcs-enable-caching
Browse files Browse the repository at this point in the history
PHPCS: enable caching between runs
  • Loading branch information
Joost de Valk authored Jul 7, 2020
2 parents 343c107 + 51eda65 commit 5742a3b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cache/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This directory has to exist to allow cache files to be written to it.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production
# https://blog.madewithlove.be/post/gitattributes/
#
.cache export-ignore
.github export-ignore
grunt export-ignore
tests export-ignore
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ nightwatch.conf.js

phpcs.xml
.phpcs.xml
.cache/phpcs.cache
phpunit.xml
3 changes: 3 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>

<!-- Cache the results between runs. -->
<arg name="cache" value="./.cache/phpcs.cache"/>


<!--
#############################################################################
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist: trusty
cache:
yarn: true
directories:
- .cache
- vendor
# Cache directory for older Composer versions.
- $HOME/.composer/cache/files
Expand Down

0 comments on commit 5742a3b

Please sign in to comment.