forked from leezng/element-patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (33 loc) · 804 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: node_js
node_js:
- "7"
cache:
directories:
- "node_modules"
install:
- npm i
- npm install element-ui@2
- npm install vue@2
stages:
- lint
- name: gh_pages
if: branch = master
jobs:
include:
- stage: lint
script: npm run lint
- stage: gh_pages
script: npm run build
after_script:
- cd ./example-dist
- git init
- git remote add origin "https://${GH_TOKEN}@${GH_REF}"
- git checkout -b gh-pages
- git config user.name "leezng"
- git config user.email "im.leezng@gmail.com"
- git add .
- git commit -m "update example page"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" gh-pages:gh-pages
env:
global:
- GH_REF: github.com/leezng/el-form-renderer.git