Travis CI: add Node.js 12 and use `cache: npm`. (#28705)

This commit is contained in:
XhmikosR 2019-04-29 18:03:25 +03:00 committed by GitHub
parent 280f45c55e
commit 344dfbb302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -6,6 +6,7 @@ git:
node_js:
- "8"
- "10"
- "12"
before_script:
- google-chrome-stable --product-version
script:
@ -14,8 +15,6 @@ script:
- if [[ "$TRAVIS_NODE_VERSION" = "10" && "$TRAVIS_EVENT_TYPE" = "push" && ! `git log --format=%B --no-merges -n 1 | grep '\[skip browser\]'` ]]; then npm run js-test-cloud; fi
after_success:
- if [[ "$TRAVIS_NODE_VERSION" = "10" ]]; then npm run coveralls; fi
cache:
directories:
- "$HOME/.npm"
cache: npm
notifications:
email: false