Skip to content

Commit

Permalink
Add codecov config
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkins committed Feb 6, 2018
1 parent 76b345c commit 815189c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
coverage:
ignore:
- manage.py
- buk/settings.py
- buk/local_settings.py
- buk/local_settings_example.py
- **/apps.py
- **/tests.py
- **/wsgi.py
- **/migrations
- **/urls.py
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ services:

# Install dependencies
install:
- pip install -r requirements.txt
- pip install -r requirements_mysql.txt
- pip install pipenv
- pipenv install --dev --deploy

# Prepare the working environment
before_script:
Expand All @@ -17,5 +17,7 @@ before_script:

# Run tests
script:
- python manage.py makemigrations --check
- python manage.py test
- coverage run --source='.' manage.py test

after_success:
- codecov
3 changes: 1 addition & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ docutils = "==0.13.1"

[dev-packages]
mysqlclient = "==1.3.10"

[coverage]
codecov = "*"

[requires]
python_version = "3.6"

0 comments on commit 815189c

Please sign in to comment.