Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
language: node_js | ||
node_js: | ||
- 10.4.0 | ||
- 10.4.0 | ||
before_install: | ||
# Only deploy if the version number has changed | ||
- | | ||
if git diff --unified=0 $TRAVIS_COMMIT_RANGE package.json | grep version ; then | ||
export VERSION_CHANGED="yes" | ||
fi | ||
- npm i -g npm@6.4.1 | ||
install: | ||
- npm install | ||
- npm install | ||
script: | ||
- npm run lint | ||
- bash scripts/versionCheck.sh $TRAVIS_BRANCH $TRAVIS_PULL_REQUEST | ||
- npm test | ||
- npm run lint | ||
- npm test | ||
before_deploy: | ||
- npm run build | ||
- npm run build | ||
deploy: | ||
skip_cleanup: true | ||
provider: npm | ||
email: $NPM_EMAIL | ||
api_key: $NPM_KEY | ||
on: | ||
branch: master | ||
condition: "$VERSION_CHANGED == 'yes'" |
This file was deleted.
Oops, something went wrong.