Fix travis-ci.org not caching htmlproofer

less than 1 minute read

I build my site using Jekyll, GitHub and Travis-CI. I’ve recently noticed that whenever [HTMLProofer] runs, it says:

Found 0 links in the cache...

I couldn’t figure it out right away, but the reason actually is that my original design was to build the site in the script target and run the test in the after_success target. Sounds logical, no? But the cache is updated before after_success and not after, so the link cache never gets added to build cache. This is also documented in the docs.

So to add and upload HTMLProofer’s cache I moved the site test into the script target too.

vim: set tw=79 ts=2 sw=2 ai si et: