Merge pull request #1337 from DanielRuf/chore/cache-dependencies

Clear cache dependencies on Travis tests
This commit is contained in:
Jim LAURIE 2018-07-10 09:49:41 +02:00 committed by GitHub
commit f5175bee36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,12 +13,16 @@ before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
- npm cache clean --force
- rm -rf node_modules/
# - sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
# - npm cache clean --force
# - rm -rf node_modules/
install:
- npm run setup --debug
script:
- npm run doc
cache:
directories:
- "node_modules"