arduino-cmake / Arduino-CMake-NG

CMake-Based framework for Arduino platforms
MIT License
138 stars 39 forks source link

Cache Arduino SDK in Travis-CI builds #6

Closed MrPointer closed 6 years ago

MrPointer commented 6 years ago

Travis-CI has the ability to cache downloaded packages between builds to save some time and network traffic. We should use it to cache the Arduino SDK, as downloading and installing it takes most of the build's traffic and time.

MrPointer commented 6 years ago

Update: As stated by Travis-CI docs - They don't recommend storing SDKs in cache, as they are fast to install but slow to download, which doesn't speed up the build much. This ticket/issue can now be seen as unnecessary and closed.

MrPointer commented 6 years ago

Update: After a few PRs of triage, it seems that not storing cache is a bad idea.
This is because Arduino file servers are sometimes extremely laggy, causing builds to reach a horrible completion time of 10 minutes (should've been 1 when servers are functioning normally).