Skip to content

Commit a6531e3

Browse files
committed
refactor(TravisCI): 修改 TravisCI 配置文件
1 parent 37ff8c7 commit a6531e3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414
if: type = push AND branch = develop
1515
install: yarn install
1616
script:
17-
- yarn build
1817
- yarn dev
19-
- git config --global user.name "Juzi"
20-
- git config --global user.email "[email protected]"
18+
- yarn build
19+
after_success:
20+
- git config --global user.name "Deployment Bot"
21+
- git config --global user.email "[email protected]"
2122
- git add -A
2223
- "git commit -m 'build: Travis CI automatic compilation.'"
23-
- git push "https://juzi214032:${GITHUB_TOKEN}@github.com/TaleLin/lin-ui" develop
24+
- git push "https://juzi214032:${GITHUB_TOKEN}@github.com/TaleLin/lin-ui" HEAD:develop
2425
- name: "Check Compile"
2526
if: type = pull_request
2627
install: yarn install
27-
script: yarn build
28+
script:
29+
- yarn dev
30+
- yarn build

0 commit comments

Comments
 (0)