From 62f4607bf1754f5127639aac24839753a508132a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B3=B0?= Date: Sat, 13 Oct 2018 21:18:04 +0800 Subject: [PATCH] commit --- .travis.yml | 35 +++++++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 38 insertions(+) create mode 100644 .travis.yml 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)