How does Travis CI cache Gradle dependencies?

后端 未结 1 1758
春和景丽
春和景丽 2021-01-14 22:52

In Travis documentation about caching dependencies, it mentions:

The cache’s purpose is to make installing language-specific dependencies easy and fas

1条回答
  •  不思量自难忘°
    2021-01-14 23:22

    It's a good question. I'm not sure about the benefits of cache usage because I never measured the download time of S3, but it's probably faster.

    At the end of the linked page they explain:

    If you store archives larger than a few hundred megabytes in the cache, it’s unlikely that you’ll see a significant speed improvement.

    It seems that they consider faster to cache a lot of small files than downloading them independently.

    Gradle files fit in this category are quick to install and FAST to download.

    They don't recommend to use cache for quick to install files and SLOW to download like the system images of 1GB of Android.

    In my opinion, they say this because you are hurting their S3 quotas (I have no idea about the terms of this service) for a negligible benefit for you in this case.

    0 讨论(0)
提交回复
热议问题