Skip to content

Commit 41a18d9

Browse files
authored
Merge pull request USTC-Resource#6 from cclauss/patch-1
Travis CI: Simplify using language: 'python'
2 parents f9bf499 + c55e034 commit 41a18d9

File tree

1 file changed

+19
-28
lines changed

1 file changed

+19
-28
lines changed

.travis.yml

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
language: python3
2-
sudo: required
3-
python:
4-
- "3.6"
1+
language: python
2+
python: "3.6"
53

6-
notifications:
7-
email:
8-
recipients:
9-
- zhuheqin1@gmail.com
10-
on_success: change # default: change
11-
on_failure: always # default: always
4+
branches:
5+
only:
6+
- master
7+
8+
env:
9+
# Github Pages
10+
- GH_REF: github.com/USTC-Resource/USTC-Course
1211

1312
install:
14-
- sudo apt-get install python3 -y
15-
- sudo apt-get install python3-pip -y
16-
- sudo pip3 install markdown
17-
- sudo pip3 install pypinyin
13+
- pip install --upgrade pip
14+
- pip install markdown pypinyin
1815

1916
script:
20-
- python3 utils/genReadme.py
21-
- python3 utils/genIndex.py
17+
- python utils/genReadme.py
18+
- python utils/genIndex.py
2219

2320
after_script:
2421
# Build Master Repository(Coding Pages)
@@ -31,15 +28,9 @@ after_script:
3128
- git commit -m "Travis-CI Update pages with build $TRAVIS_BUILD_NUMBER"
3229
- git push -f "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
3330

34-
addons:
35-
apt:
36-
update: true
37-
38-
branches:
39-
only:
40-
- master
41-
env:
42-
global:
43-
# Github Pages
44-
- GH_REF: github.com/USTC-Resource/USTC-Course
45-
31+
notifications:
32+
email:
33+
recipients:
34+
- zhuheqin1@gmail.com
35+
on_success: change # default: change
36+
on_failure: always # default: always

0 commit comments

Comments
 (0)