approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
312 stars 51 forks source link

e Use ccache to speed up many Travis builds #134

Closed claremacrae closed 4 years ago

claremacrae commented 4 years ago

This is a partial fix for #133.

ccache will also be used if found on developer machines.

If we are only changing documentation, the total Travis build time drops from 43.5 minutes to 17 to 18.5 minutes.

And the elapsed time drops from just over 12 minutes to 6 to 7 minutes.

For more timings, see: https://github.com/approvals/ApprovalTests.cpp/issues/133#issuecomment-632049357

Changes made:

  1. If ccache is found, speed up Ninja, Makefiles and Xcode builds This has speeded up many builds on my Mac considerably.

  2. Enable ccache and caching between runs on Travis CI.

  3. Improved readability of Travis before_script and script sections.

  4. Drop xcode 8.3 (macOS 10.12 Sierra) build from Travis This build is just too slow - and Apple has dropped support for 10.12.