diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ebcd54a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -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 "zhuheqin1@gmail.com" - - cd docs - - git init - - git remote add origin git@github.com: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: - - zhuheqin1@gmail.com - on_success: change # default: change - on_failure: always # default: always diff --git a/README.md b/README.md index 8ab9521..cdf8ad0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Stars](https://img.shields.io/github/stars/USTC-Resource/USTC-Course.svg?label=Stars&style=social)](https://github.com/USTC-Resource/USTC-Course/stargazers) [![Forks](https://img.shields.io/github/forks/USTC-Resource/USTC-Course.svg?label=Forks&style=social)](https://github.com/USTC-Resource/USTC-Course/network/members) -[![Build](https://travis-ci.org/USTC-Resource/USTC-Course.svg?branch=master)](https://travis-ci.org/USTC-Resource/USTC-Course?branch=master) +[![build](https://github.com/USTC-Resource/USTC-Course/workflows/build/badge.svg)]() [![repo-size](https://img.shields.io/github/repo-size/USTC-Resource/USTC-Course.svg)]() [![License](https://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png)](http://creativecommons.org/licenses/by-nc-sa/4.0/) diff --git a/utils/config.py b/utils/config.py index 9a8f665..44ec1d2 100644 --- a/utils/config.py +++ b/utils/config.py @@ -65,7 +65,7 @@ [![Stars](https://img.shields.io/github/stars/USTC-Resource/USTC-Course.svg?label=Stars&style=social)](https://github.com/USTC-Resource/USTC-Course/stargazers) [![Forks](https://img.shields.io/github/forks/USTC-Resource/USTC-Course.svg?label=Forks&style=social)](https://github.com/USTC-Resource/USTC-Course/network/members) -[![Build](https://travis-ci.org/USTC-Resource/USTC-Course.svg?branch=master)](https://travis-ci.org/USTC-Resource/USTC-Course?branch=master) +[![build](https://github.com/USTC-Resource/USTC-Course/workflows/build/badge.svg)]() [![repo-size](https://img.shields.io/github/repo-size/USTC-Resource/USTC-Course.svg)]() [![License](https://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png)](http://creativecommons.org/licenses/by-nc-sa/4.0/)