mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Set up package-lock support for greenkeeper
This commit is contained in:
parent
755cdd98e5
commit
a8fd1f9c38
1 changed files with 8 additions and 1 deletions
|
@ -11,8 +11,15 @@ env:
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- "$HOME/.npm"
|
- "$HOME/.npm"
|
||||||
install: npm ci
|
before_install:
|
||||||
|
# package-lock.json was introduced in npm@5
|
||||||
|
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
|
||||||
|
- npm install -g greenkeeper-lockfile
|
||||||
|
install:
|
||||||
|
- if [[ ${TRAVIS_BRANCH:0:11} = greenkeeper ]]; then npm install; else npm ci; fi
|
||||||
|
before_script: greenkeeper-lockfile-update
|
||||||
script: npm run $NPM_SCRIPT
|
script: npm run $NPM_SCRIPT
|
||||||
|
after_script: greenkeeper-lockfile-upload
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- env: NPM_SCRIPT=lint
|
- env: NPM_SCRIPT=lint
|
||||||
|
|
Loading…
Reference in a new issue