Shallow cloning for external repos

To reduce Travis build time and server load
This commit is contained in:
Oliver 2017-10-10 16:32:40 +11:00 committed by GitHub
parent 1b9f4d3349
commit 6b14e9fee7
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
sudo: required
before_install:
- git clone https://github.com/KiCad/kicad-library-utils /home/travis/build/kicad-library-utils
- git clone https://github.com/KiCad/kicad-library /home/travis/build/kicad-library-old
- git clone --depth 1 https://github.com/KiCad/kicad-library-utils /home/travis/build/kicad-library-utils
- git clone --depth 1 https://github.com/KiCad/kicad-library /home/travis/build/kicad-library-old
script:
- sudo bash ./library-check.sh $TRAVIS_BUILD_DIR
- sudo bash ./library-check.sh $TRAVIS_BUILD_DIR