Skip to content

Commit

Permalink
Merge pull request #17 from andela/ch-integrate-coveralls-161254654
Browse files Browse the repository at this point in the history
#161254654 Setup Test Environment on TravisCI
  • Loading branch information
code-sleuth committed Oct 31, 2018
2 parents 7118126 + 7e9d419 commit 002c94d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[run]
omit =
*apps.py,
*migrations/*,
*settings*,
*tests/*,
*venv/*,
*virtualenv/*,
*urls.py,
*wsgi/*,
manage.py,
*env/*x
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
language: python
python:
- "3.6"

services:
- postgresql
before_script:
- psql -c 'create database testdb;' -U postgres
install:
- "pip install pytest"
- "pip install -r requirements.txt"
- "pip install coveralls"
- "pip install coverage"

script:
- echo orcas
- python3 manage.py makemigrations
- python3 manage.py migrate
- coverage run manage.py test
- coverage report

after_success:
- coveralls


3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ django-extensions==2.1.3
djangorestframework==3.9.0
psycopg2-binary==2.7.5
PyJWT==1.6.4
pytest==3.9.3
python-dateutil==2.7.5
pytz==2018.5
six==1.11.0
coverage==4.5.1

0 comments on commit 002c94d

Please sign in to comment.