Skip to content

Commit

Permalink
Added Coverage XML flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthS007 committed Apr 13, 2019
1 parent 5afc663 commit 3fb5145
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ project_settings.py
*.log
static
.coverage
coverage.xml
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ sudo: required
services:
- docker

env:
- ci_env=`bash <(curl -s https://codecov.io/env)`

before_script:

# MySQL starts by default, resulting in a port conflict
- sudo /etc/init.d/mysql stop

script:
- docker-compose up -d --build
- docker exec hashtags_app_1 python manage.py test
- docker exec hashtags_app_1 python manage.py test $ci_env

after_script:
- docker images
Expand Down
1 change: 1 addition & 0 deletions hashtagsv2/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
NOSE_ARGS = [
'--with-coverage',
'--cover-package=./',
'--cover-xml',
]

MIDDLEWARE = [
Expand Down

0 comments on commit 3fb5145

Please sign in to comment.