Is there a reason to use incremental compilation o...
# announcements
e
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)?
d
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.
d
Travis CI features build caches. Incremental builds are disabled by default.