From cf58e5c4ca4dc65ed59e015d9c67eb7b795d825f Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Sat, 21 Nov 2020 16:25:22 +0800 Subject: [PATCH] ci: disable travis build resolve #88 --- .travis.yml | 25 ------------------------- README.md | 7 ++++++- 2 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 855f23e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: python -python: - - '3.6' -before_install: - - eval "$(gimme stable)" -install: - - go get github.com/github/hub && hub --version - - pip install -r requirements.txt -r dev-requirements.txt - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter -cache: - - pip -before_script: - - git config credential.helper "store --file=.git/credentials" - - echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials - - git checkout master - - ./cc-test-reporter before-build -script: - - coverage run -m pytest && coverage run -a ./update.py --release -after_script: - - coverage xml && coverage report - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -branches: - only: - - master diff --git a/README.md b/README.md index cc72188..fb24965 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # holiday-cn -[![Build Status](https://travis-ci.com/NateScarlet/holiday-cn.svg?branch=master)](https://travis-ci.com/NateScarlet/holiday-cn) [![Release](https://img.shields.io/github/release/NateScarlet/holiday-cn.svg)](https://github.com/NateScarlet/holiday-cn/releases/latest) [![CalVer](https://img.shields.io/badge/calver-YYYY.0M.0D-22bfda.svg)](http://calver.org) [![Maintainability](https://api.codeclimate.com/v1/badges/c8e9d9c51bd2d858c577/maintainability)](https://codeclimate.com/github/NateScarlet/holiday-cn/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/c8e9d9c51bd2d858c577/test_coverage)](https://codeclimate.com/github/NateScarlet/holiday-cn/test_coverage) ![Maintenance](https://img.shields.io/maintenance/yes/2020.svg) +[![Build Status](https://github.com/NateScarlet/holiday-cn/workflows/CI/badge.svg)](https://github.com/NateScarlet/holiday-cn/actions) +[![Release](https://img.shields.io/github/release/NateScarlet/holiday-cn.svg)](https://github.com/NateScarlet/holiday-cn/releases/latest) +[![CalVer](https://img.shields.io/badge/calver-YYYY.0M.0D-22bfda.svg)](http://calver.org) +[![Maintainability](https://api.codeclimate.com/v1/badges/c8e9d9c51bd2d858c577/maintainability)](https://codeclimate.com/github/NateScarlet/holiday-cn/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/c8e9d9c51bd2d858c577/test_coverage)](https://codeclimate.com/github/NateScarlet/holiday-cn/test_coverage) +![Maintenance](https://img.shields.io/maintenance/yes/2020.svg) 中国法定节假日数据 自动每日抓取国务院公告