Skip to content

Commit

Permalink
update travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed May 11, 2018
1 parent e6df5ba commit d1986cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions .travis.yml
Expand Up @@ -11,24 +11,25 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

on:
branch: master
tags: true

after_script:
- npm run coveralls

cache:
directories:
- node_modules

jobs:
include:
- stage: "Test"
branches:
only: master
after_script:
- npm run coveralls

- stage: "NPM publish"
on:
tags: true
script: skip
script: echo "Deploying to NPM ..."
deploy:
provider: npm
email: "simonguo.2009@gmail.com"
email: "leishenghao@126.com"
api_key: $NPM_AUTH_TOKEN
skip_cleanup: true
on:
tags: true
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "rsuite",
"version": "3.0.3",
"version": "3.0.4-travis3",
"description": "A suite of react components",
"main": "lib/index.js",
"directories": {
Expand Down

0 comments on commit d1986cb

Please sign in to comment.