From 26e361cda5657a05a30884459f763529f9a1c5ca Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Fri, 9 Sep 2016 13:25:28 -0400 Subject: [PATCH] build: cache node_modules on CI --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index e7932cafb..7614df3e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,12 @@ node_js: - "5.11" - "6.5" sudo: false +cache: + directories: + - node_modules +before_install: + - "test ! -d node_modules || npm prune" + - "test ! -d node_modules || npm rebuild" script: - "npm run-script test-travis" after_script: