From 153f8e4f10a754c5934fa15cdaf5ad9f154d7f24 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Sun, 30 Jun 2019 14:46:05 -0230 Subject: [PATCH 1/2] editorconfig: Add 2 spaces for Travis config --- .editorconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.editorconfig b/.editorconfig index b724d9ecc07..665de41beea 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,3 +15,7 @@ trim_trailing_whitespace = false [{package,package-lock}.json] indent_size = 2 indent_style = space + +[.travis.yml] +indent_size = 2 +indent_style = space From 59d6df4a865f5a413a006b109bd49c1dd43d44e4 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Sun, 30 Jun 2019 14:46:45 -0230 Subject: [PATCH 2/2] travis: Add split CI into two jobs This introduces two jobs, one based on a regular `npm install` and one based on `npm ci`, the latter just to confirm that a ci install produces a correct install that passes the test suite. --- .travis.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) 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