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

Commit

Permalink
fix: travis
Browse files Browse the repository at this point in the history
  • Loading branch information
JamilOmar committed Jul 17, 2019
1 parent 3423bc6 commit c6ab7b9
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ node_js:
- lts/*
- node
before_install:
- git config --global url."git@github.com:".insteadOf "https://github.com/"
before_install:
- |-
if [ $TRAVIS_PULL_REQUEST == false ] && [ $TRAVIS_BRANCH == "master" ];
then
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc;
else
echo "//registry.npmjs.org/:_authToken=\${NPM_INSTALL_TOKEN}" > ~/.npmrc;
fi
- 'git config --global url."git@github.com:".insteadOf "https://github.com/"'
script:
- npm i -g codecov
- npm test
Expand All @@ -16,8 +24,21 @@ cache:
- ~/.npm
notifications:
email: false
after_success:
- npm run semantic-release
matrix:
allow_failures:
- node_js: node
branches:
except:
- /^vd+.d+.d+$/
jobs:
include:
- stage: release
if: branch = master
language: node_js
node_js: lts/*
script: skip
deploy:
provider: script
skip_cleanup: true
script:
- npm run semantic-release

0 comments on commit c6ab7b9

Please sign in to comment.