Skip to content
Snippets Groups Projects
Commit 0ec46056 authored by Ray Schamp's avatar Ray Schamp
Browse files

Add package-lock to repo

parent 9dcb1f81
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# NPM # NPM
/node_modules /node_modules
npm-* npm-*
/package-lock.json
# Testing # Testing
/.nyc_output /.nyc_output
......
...@@ -14,12 +14,18 @@ env: ...@@ -14,12 +14,18 @@ env:
cache: cache:
directories: directories:
- node_modules - node_modules
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: install:
- npm --production=false install - npm --production=false install
- npm --production=false update - npm --production=false update
before_script: greenkeeper-lockfile-update
script: script:
- npm test - npm test
- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] && [ "$TRAVIS_BRANCH" == "master" ]; then npm run test:smoke; fi - if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] && [ "$TRAVIS_BRANCH" == "master" ]; then npm run test:smoke; fi
after_script: greenkeeper-lockfile-upload
before_deploy: before_deploy:
- > - >
if [ -z "$BEFORE_DEPLOY_RAN" ]; then if [ -z "$BEFORE_DEPLOY_RAN" ]; then
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment