Skip to content

Commit

Permalink
[chore] Fix failing travis build and speed up with npm ci (#983)
Browse files Browse the repository at this point in the history
* [chore] Remove package-lock.json from gitignores

* [chore] Add package-lock.json for speedier CI runs

* [chore] Install deps with npm ci on travis

* [chore] Fallback to 'npm install' if 'npm ci' fails
  • Loading branch information
bjoerge committed Sep 27, 2018
1 parent 6d7d358 commit cdc93f8
Show file tree
Hide file tree
Showing 16 changed files with 43,307 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -44,4 +44,3 @@ jspm_packages

# Lockfiles
yarn.lock
package-lock.json
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,10 @@ cache:
directories:
- "$HOME/.npm"

install:
# todo: remove the `|| npm install` part below when we no run CI with node 6
- npm ci || npm install

before_script:
- travis_wait npm run bootstrap
- npm run build
Expand Down
34,185 changes: 34,185 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions packages/@sanity/base/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/@sanity/cli/.npmignore
Expand Up @@ -5,4 +5,3 @@
/.eslintignore
/.eslintrc
/yarn.lock
/package-lock.json

0 comments on commit cdc93f8

Please sign in to comment.