1
0
mirror of https://github.com/pyro2927/SouthwestCheckin.git synced 2025-12-06 01:13:19 +00:00

Adding pytest coverage

This commit is contained in:
pyro2927
2019-02-16 20:36:38 -08:00
parent e6bc23252d
commit f76ff4c553
3 changed files with 15 additions and 3 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
*.pyc
*.swp
.cache/
.cache/
.coverage

View File

@@ -1,8 +1,17 @@
dist: xenial
language: python
env:
global:
- CC_TEST_REPORTER_ID=3d0abe23b60c405d5de7e038f366649a8002c4ccedccabad3da0e3b3e9b5049b
python:
- "2.7.15"
- "3.7.1"
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- pytest
- pycodestyle *.py --show-source --ignore=E501
- pytest --cov=southwest --cov=checkin --cov=openflights
- pycodestyle *.py --show-source --ignore=E501
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

View File

@@ -1,7 +1,9 @@
coverage
datetime
docopts
pycodestyle
pytest
pytest-cov
pytest-mock
python-dateutil
pytz