Skip to content

Commit 5742a3b

Browse files
author
Joost de Valk
authored
Merge pull request #263 from Yoast/JRF/CI/phpcs-enable-caching
PHPCS: enable caching between runs
2 parents 343c107 + 51eda65 commit 5742a3b

5 files changed

Lines changed: 7 additions & 0 deletions

File tree

.cache/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This directory has to exist to allow cache files to be written to it.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production
66
# https://blog.madewithlove.be/post/gitattributes/
77
#
8+
.cache export-ignore
89
.github export-ignore
910
grunt export-ignore
1011
tests export-ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ nightwatch.conf.js
99

1010
phpcs.xml
1111
.phpcs.xml
12+
.cache/phpcs.cache
1213
phpunit.xml

.phpcs.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<!-- Check up to 8 files simultaneously. -->
3030
<arg name="parallel" value="8"/>
3131

32+
<!-- Cache the results between runs. -->
33+
<arg name="cache" value="./.cache/phpcs.cache"/>
34+
3235

3336
<!--
3437
#############################################################################

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dist: trusty
44
cache:
55
yarn: true
66
directories:
7+
- .cache
78
- vendor
89
# Cache directory for older Composer versions.
910
- $HOME/.composer/cache/files

0 commit comments

Comments
 (0)