ci: disable travis build

resolve #88
This commit is contained in:
NateScarlet 2020-11-21 16:25:22 +08:00
parent 93d054591b
commit cf58e5c4ca
No known key found for this signature in database
GPG Key ID: 5C242793B070309C
2 changed files with 6 additions and 26 deletions

View File

@ -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

View File

@ -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)
中国法定节假日数据 自动每日抓取国务院公告