Skip to content

Commit

Permalink
Merge pull request #92 from fga-eps-mds/issue_35_badge_coverage
Browse files Browse the repository at this point in the history
[HOT-FIX] Bagde de cobertura mostra percentual
  • Loading branch information
cantuariavc authored Nov 18, 2019
2 parents e51d672 + 0011f63 commit a0178a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ before_install:

- sudo /etc/init.d/postgresql stop

- echo -e "\nENV COVERALLS_REPO_TOKEN ${COVERALLS_REPO_TOKEN}" >> Dockerfile

script:
- docker-compose up -d --build
- >
while ! docker logs backend | grep "Starting development server at http://0:8000/"; do
sleep 5
done;
- docker exec -it backend python3 manage.py migrate
- docker exec -it backend python3 manage.py test
- docker exec -it backend bash -c '
python3 manage.py migrate &&
coverage run --source='.' manage.py test &&
coveralls'

after_script:
- docker-compose down --remove-orphans
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Django
Django==2.2.5
psycopg2==2.8.3
coverage==4.5.4
python-coveralls==2.9.3
django-cors-headers==3.1.0
django-extensions==2.2.3
ipdb==0.12.2
Expand Down

0 comments on commit a0178a8

Please sign in to comment.