Change git cloning depth to 1 to make the Travis builds faster

By default, Travis uses a depth of 50 when cloning git repositories.
This commit changes the depth to 1. This will make each Travis build
run slightly faster.
This commit is contained in:
Rodrigo Primo 2020-10-30 10:49:27 -03:00
parent e38d0dfdb1
commit cc71d70cce
1 changed files with 5 additions and 0 deletions

View File

@ -92,3 +92,8 @@ branches:
before_install:
- composer self-update --1
# Git clone depth
# By default Travis CI clones repositories to a depth of 50 commits. Using a depth of 1 makes this step a bit faster.
git:
depth: 1