forked from USTC-Resource/USTC-Course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 964 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
39
40
41
42
43
44
language: python3
sudo: required
python:
- "3.6"
notifications:
email:
recipients:
on_success: change # default: change
on_failure: always # default: always
install:
- sudo apt-get install python3 -y
- sudo apt-get install python3-pip -y
- sudo pip3 install markdown
- sudo pip3 install pypinyin
script:
- python3 utils/genReadme.py
- python3 utils/genIndex.py
after_script:
# Build Master Repository(Coding Pages)
- git config user.name "mbinary"
- git config user.email "[email protected]"
- cd docs
- git init
- git remote add origin [email protected]:USTC-Resource/USTC-Course.git
- git add --all
- git commit -m "Travis-CI Update pages with build $TRAVIS_BUILD_NUMBER"
- git push -f "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
addons:
apt:
update: true
branches:
only:
- master
env:
global:
# Github Pages
- GH_REF: github.com/USTC-Resource/USTC-Course