diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dc7b1fb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +language : node_js +node_js: + - "10" + - "9" + +branches: + only: + - master + - stable + +install: +- npm install + +os: + - linux + +stages: + - name: deploy + +jobs: + include: + - stage: deploy + script: + - echo "NPM Deploying Started ..." + - npm version + - npm run build + - echo "NPM Building Finished." + + deploy: + provider: npm + email: chenfengjw@hotmail.com + api_key: "$NPM_TOKEN" + skip_cleanup: true + on: + all_branches: true \ No newline at end of file diff --git a/README.md b/README.md index 2164ba9..589e0fd 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ Simple JSON viewer component, for Vue.js 2 +[![Build Status](https://travis-ci.org//.svg?branch=dev)](https://travis-ci.org//) + + - [Installing](#installing) - [Example](#example) - [Options](#options)