Use Travis CI cache and reduce clone depth to speed up setup time
authorKosta Harlan <kharlan@wikimedia.org>
Thu, 8 Nov 2018 13:43:23 +0000 (08:43 -0500)
committerKosta Harlan <kharlan@wikimedia.org>
Thu, 8 Nov 2018 13:43:23 +0000 (08:43 -0500)
Bug: T209056
Change-Id: Id4bb37e48f0023cdf2bf99a022ceb870602aaaa5

.travis.yml

index b28861d..4260c46 100644 (file)
@@ -17,6 +17,18 @@ sudo: false
 # - Required for non-buggy xml library for XmlTypeCheck/UploadBaseTest (T75176).
 dist: trusty
 
+git:
+  depth: 3
+  quiet: true
+
+# Cache NPM and Composer directories
+# <https://docs.travis-ci.com/user/caching/>
+cache:
+  npm: true
+  directories:
+  # Composer doesn't have a dedicated cache setting in Travis CI config, so set the directory path instead.
+  - vendor
+
 matrix:
   fast_finish: true
   include: