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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
*.pyc
|
||||
*.swp
|
||||
.cache/
|
||||
.cache/
|
||||
.coverage
|
||||
13
.travis.yml
13
.travis.yml
@@ -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
|
||||
@@ -1,7 +1,9 @@
|
||||
coverage
|
||||
datetime
|
||||
docopts
|
||||
pycodestyle
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-mock
|
||||
python-dateutil
|
||||
pytz
|
||||
|
||||
Reference in New Issue
Block a user