forked from USTC-Resource/USTC-Course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 901 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
language: python
python: "3.6"
branches:
only:
- master
env:
# Github Pages
- GH_REF: github.com/USTC-Resource/USTC-Course
install:
- pip install --upgrade pip
- pip install flake8 markdown pypinyin
script:
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
- python utils/genReadme.py
- python 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
notifications:
email:
recipients:
on_success: change # default: change
on_failure: always # default: always