Skip to content

Commit 080d271

Browse files
committed
chore(TravisCI): 新增 TravisCI 配置文件
1 parent b37a057 commit 080d271

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# 指定运行环境
2+
language: node_js
3+
node_js:
4+
- lts/*
5+
6+
# 仅监控 master 分支
7+
branches:
8+
except:
9+
- master
10+
11+
jobs:
12+
include:
13+
- name: "推送编译"
14+
if: type = push AND branch = develop
15+
install: yarn install
16+
script:
17+
- yarn build
18+
- git config --global user.name "Juzi"
19+
- git config --global user.email "juzi214032@qq.com"
20+
- git add -A
21+
- "git commit -m 'build: Travis CI automatic compilation.'"
22+
- git push "https://juzi214032:${GITHUB_TOKEN}@github.com/TaleLin/lin-ui"
23+
- name: "检测编译"
24+
if: type = pull_request
25+
install: yarn install
26+
script: yarn build

0 commit comments

Comments
 (0)