-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Setup semantic release (#38)
- Loading branch information
Showing
3 changed files
with
2,319 additions
and
429 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ language: | |
- node_js | ||
|
||
node_js: | ||
- 7 | ||
- 8 | ||
- 6 | ||
- 4 | ||
|
||
|
@@ -20,29 +20,16 @@ branches: | |
notifications: | ||
slack: smartcar:PGJmjtKFPytU5E2FwsImdVp8 | ||
|
||
before_install: | ||
- git clone [email protected]:smartcar/build.git $HOME/smartcar-build | ||
- cp $HOME/smartcar-build/resources/Makefile . | ||
|
||
install: | ||
- npm update | ||
- npm update --save false | ||
- npm prune | ||
|
||
script: | ||
- npm test | ||
- npm run cover | ||
- if [ $TRAVIS_NODE_VERSION = 6 ]; then make create-tag; fi | ||
|
||
deploy: | ||
- provider: npm | ||
email: [email protected] | ||
api_key: $NPM_API_TOKEN | ||
on: | ||
branch: master | ||
node: 6 | ||
- provider: script | ||
skip_cleanup: true | ||
script: make push-tag | ||
on: | ||
branch: master | ||
node: 6 | ||
jobs: | ||
include: | ||
- stage: publish | ||
node_js: 8 | ||
script: npm run release |
Oops, something went wrong.