Move lint jobs to CircleCI#2004
Conversation
teohhanhui
commented
Jun 5, 2018
| Q | A |
|---|---|
| Bug fix? | no |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | N/A |
| License | MIT |
| Doc PR | N/A |
|
you can add a php-cs-fixer fixer cache step |
3b30a02 to
3d91257
Compare
|
@bendavies Good catch! :D |
0e0ee87 to
f388581
Compare
| save_cache: | ||
| paths: | ||
| - .php_cs.cache | ||
| key: php-cs-fixer-cache-{{ .Branch }}-{{ .BuildNum }} |
There was a problem hiding this comment.
are you sure this is correct?
you never restore using .BuildNum so it seems pointless.
(i'm aware of how circle ci restore_cache works with substrings)
There was a problem hiding this comment.
i thought you might
save key:
php-cs-fixer-cache-{{ .Branch }}-{{ .Revision }}
restore keys:
keys:
- php-cs-fixer-cache-{{ .Branch }}-{{ .Revision }}
- php-cs-fixer-cache-{{ .Branch }}
- php-cs-fixer-cache
There was a problem hiding this comment.
It's intentional. The .BuildNum is for cache busting.
There was a problem hiding this comment.
ah, in my project i actually generate a hash of all php files they php-cs-fixer runs over, then cache on that.
something like:
find src tests -type f -name "*.php" -exec md5sum {} + > php-cs-fixer.checksum
- restore_cache:
keys:
- php-cs-fixer-{{ checksum "php-cs-fixer.checksum" }}
- php-cs-fixer-
...
- save_cache:
key: php-cs-fixer-{{ checksum "php-cs-fixer.checksum" }}
paths:
- .php_cs.cache
then there is no need for cache busting.
|
there is npm caching in here, but i can't see that npm is ever ran. am i missing it? |
|
@bendavies |
|
ah! thanks |
f388581 to
71724b4
Compare
|
Overall build time should be back down to under 10 minutes (roughly). 🎉 |
8e3b02e to
b2a83fb
Compare
b2a83fb to
3ea9755
Compare
|
Thanks @teohhanhui |