Skip to content

Commit

Permalink
Add coverage stats
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtycoder committed May 18, 2016
1 parent f53e1a5 commit 42e47f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
language: python
addons:
postgresql: "9.4"
services:
- postgresql
python:
- "3.4"
- "3.5"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
- cd pets
- python manage.py test
- coverage run --source=common,users,meupet,functional_tests manage.py test
env:
- DJANGO_SETTINGS_MODULE=pets.settings.dev DB_NAME=test DB_USERNAME=test DB_PASSWORD=test DB_IP=127.0.0.1 DB_PORT=5432 DB_ENGINE=django.db.backends.postgresql_psycopg2 DB_CONN_MAX_AGE=0 SECRET_KEY=dummy_key ALLOWED_HOSTS=127.0.0.1, .localhost EMAIL_PORT=0 EMAIL_HOST=example.com EMAIL_HOST_PASSWORD=example EMAIL_HOST_USER=dummy@example.com OPBEAT_DISABLE_SEND=true
before_script:
- psql -U postgres -c "CREATE USER test WITH CREATEDB PASSWORD 'test';"
after_success:
- coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Code Climate](https://codeclimate.com/github/dirtycoder/pets/badges/gpa.svg)](https://codeclimate.com/github/dirtycoder/pets)
[![Build Status](https://travis-ci.org/dirtycoder/pets.svg?branch=next)](https://travis-ci.org/dirtycoder/pets)
[![Coverage Status](https://coveralls.io/repos/github/dirtycoder/pets/badge.svg?branch=next)](https://coveralls.io/github/dirtycoder/pets?branch=next)
[![Requirements Status](https://requires.io/github/dirtycoder/pets/requirements.svg?branch=next)](https://requires.io/github/dirtycoder/pets/requirements/?branch=next)

## Pets
Expand Down

0 comments on commit 42e47f6

Please sign in to comment.