Skip to content

Commit b8844e7

Browse files
authored
Travis: switch to cache: npm and remove npm i. (#34)
This way Travis caches the proper dirs itself and also uses `npm ci` when possible.
1 parent 8871d70 commit b8844e7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,14 @@ os:
1212
- linux
1313
- windows
1414

15-
install:
16-
- npm install
17-
1815
script:
1916
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run test:cov; fi
2017
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm run test; fi
2118

2219
after_success:
2320
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_NODE_VERSION" = "10" ]]; then npm run coveralls; fi
2421

25-
cache:
26-
directories:
27-
- node_modules
22+
cache: npm
2823

2924
notifications:
3025
email: false

0 commit comments

Comments
 (0)