Is there a reason to use incremental compilation on CI, or is it pointless since it does a clean build every time? Is there a way to disable it (using Gradle)?
09/24/2017, 11:51 AM
I don't think it's wise to ever use incremental compilation on CI, even where it's possible: Incremental builds are very useful on a development machine for fast debug cycles etc. but most of us have probably encountered scenarios where a build folder gets 'dirty' and needs cleaning to build properly.
Anyways, one of the positives of 'offloading' the build process to a dedicated build-agent machine is to free up the development machine to continue with other tasks. In this spirit the CI box can be afforded the time to do a full, clean build.
09/24/2017, 8:35 PM
Travis CI features build caches. Incremental builds are disabled by default.