Skip to content

Commit

Permalink
Getting Travis to handle lock files.
Browse files Browse the repository at this point in the history
  • Loading branch information
computamike committed Jul 23, 2018
1 parent b7912ba commit ca4e3e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ language: node_js
node_js:
- 'lts/*'
- 'node'
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@1
before_script:
- npm install -g @adonisjs/cli
- greenkeeper-lockfile-update
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- npm run coverage
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- greenkeeper-lockfile-upload
notifications:
webhooks: https://www.travisbuddy.com/
on_success: never

0 comments on commit ca4e3e1

Please sign in to comment.