Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

Commit

Permalink
Adjust .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nieltg committed Sep 2, 2018
1 parent 97fe7d7 commit 53d2e5e
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,28 @@ language: node_js
cache: yarn

node_js: "10"
env:
- NODE_VERSION=4
- NODE_VERSION=7
- NODE_VERSION=10

script:
- nvm exec $NODE_VERSION yarn test
after_success:
- npm install --no-save coveralls
- npx nyc report --reporter=text-lcov | npx coveralls

deploy:
provider: npm
email: nieltansah+npmjs@gmail.com
api_key: $NPM_API_KEY
jobs:
include:
- stage: deploy
if: branch == master AND tag IS present
env:
- NODE_VERSION=10

skip_cleanup: true
on:
tags: true
script: skip
deploy:
provider: npm
email: nieltansah+npmjs@gmail.com
api_key: $NPM_API_KEY

skip_cleanup: true

0 comments on commit 53d2e5e

Please sign in to comment.