diff --git a/.editorconfig b/.editorconfig index 0fb3c319938..09abc74297a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,3 +15,7 @@ trim_trailing_whitespace = false [{package,package-lock,npm-shrinkwrap}.json] indent_size = 2 indent_style = space + +[.travis.yml] +indent_size = 2 +indent_style = space diff --git a/.travis.yml b/.travis.yml index 4bfe03321d0..f5a0a99628e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,25 @@ language: node_js node_js: "8" -install: -- travis_retry npm install -g codecov -- travis_retry npm install -script: -- npm run format -- npm run lint -- npm run test -- npm run build -- npm run doc -- codecov +jobs: + include: + - stage: "Tests & coverage" + before_install: + - travis_retry npm install -g codecov + install: + - travis_retry npm install + script: + - npm run format + - npm run lint + - npm run test + - npm run build + - npm run doc + - codecov + - stage: "Tests & coverage" + install: + - npm ci + cache: + directories: + - "$HOME/.npm" deploy: provider: pages skip-cleanup: true