Use codecov-action for codecov and remove travis-ci (#1550)

* Use codecov via a Github Action
* Remove Travis CI as CI provider
This commit is contained in:
Kevin Chung
2020-07-17 22:35:17 -04:00
committed by GitHub
parent b0f278bd97
commit ddf7ba1cb0
5 changed files with 13 additions and 41 deletions

View File

@@ -44,6 +44,7 @@ jobs:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- name: Coverage
run: codecov
- name: Codecov
uses: codecov/codecov-action@v1.0.11
with:
file: ./coverage.xml

View File

@@ -53,6 +53,8 @@ jobs:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- name: Coverage
run: codecov
- name: Codecov
uses: codecov/codecov-action@v1.0.11
with:
file: ./coverage.xml

View File

@@ -36,6 +36,8 @@ jobs:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- name: Coverage
run: codecov
- name: Codecov
uses: codecov/codecov-action@v1.0.11
with:
file: ./coverage.xml

View File

@@ -1,33 +0,0 @@
language: python
dist: bionic
cache:
- pip
- yarn
services:
- mysql
- redis-server
addons:
apt:
sources:
- deadsnakes
packages:
- python3.6
- python3-pip
env:
- TESTING_DATABASE_URL='mysql+pymysql://root@localhost/ctfd'
- TESTING_DATABASE_URL='sqlite://'
python:
- 3.6
before_install:
- sudo rm -f /etc/boto.cfg
- export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
install:
- pip install -r development.txt
- yarn install --non-interactive
- yarn global add prettier@1.17.0
script:
- make lint
- make test
after_success:
- codecov

View File

@@ -12,7 +12,7 @@ format:
prettier --write '**/*.md'
test:
pytest -rf --cov=CTFd --cov-context=test \
pytest -rf --cov=CTFd --cov-context=test --cov-report=xml \
--ignore-glob="**/node_modules/" \
--ignore=node_modules/ \
-W ignore::sqlalchemy.exc.SADeprecationWarning \