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 17, 2016
1 parent f49d3ed commit 65c54fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
@@ -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 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

0 comments on commit 65c54fe

Please sign in to comment.