Setup

Table of Contents

Cache dependencies howto

Travis CI uploads the cache after the script phase of the build, but before either after_success or after_failure.

Clone only a recent copy howto

By default, Travis CI clones repositories to a depth of 50 commits. To speed up the CI, you can set a smaller number.

depth: 1 is not recommended because if the commit you are trying to build is not reachable within the given depth at the time the repository is cloned during the build, it will fail.

git:
  depth: 3

Skip Git LFS smudge howto

Set lfs_skip_smudge: true and try to make the build process not depend on LFS files. Otherwise, every build consumes GitHub LFS quota.

git:
  lfs_skip_smudge: true