Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c55e034

Browse filesBrowse files
authored
Travis CI: Simplify using language: 'python'
__language: python3__ does not exist in Travis which is why __apt install__ was required. Using __language: python__ instead will automate the installation of both Python 3.6 and pip.
1 parent f9bf499 commit c55e034
Copy full SHA for c55e034

File tree

Expand file treeCollapse file tree

1 file changed

+19
-28
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+19
-28
lines changed

‎.travis.yml

Copy file name to clipboard
+19-28Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.