Skip to content

Commit

Permalink
Merge pull request USTC-Resource#6 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Travis CI: Simplify using language: 'python'
  • Loading branch information
heqin-zhu authored Apr 3, 2019
2 parents f9bf499 + c55e034 commit 41a18d9
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
language: python3
sudo: required
python:
- "3.6"
language: python
python: "3.6"

notifications:
email:
recipients:
- zhuheqin1@gmail.com
on_success: change # default: change
on_failure: always # default: always
branches:
only:
- master

env:
# Github Pages
- GH_REF: github.com/USTC-Resource/USTC-Course

install:
- sudo apt-get install python3 -y
- sudo apt-get install python3-pip -y
- sudo pip3 install markdown
- sudo pip3 install pypinyin
- pip install --upgrade pip
- pip install markdown pypinyin

script:
- python3 utils/genReadme.py
- python3 utils/genIndex.py
- python utils/genReadme.py
- python utils/genIndex.py

after_script:
# Build Master Repository(Coding Pages)
Expand All @@ -31,15 +28,9 @@ after_script:
- 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

notifications:
email:
recipients:
- zhuheqin1@gmail.com
on_success: change # default: change
on_failure: always # default: always

0 comments on commit 41a18d9

Please sign in to comment.