File tree Expand file tree Collapse file tree 3 files changed +130
-59
lines changed
Expand file tree Collapse file tree 3 files changed +130
-59
lines changed Original file line number Diff line number Diff line change 1+ env :
2+ global :
3+ - CC_TEST_REPORTER_ID=147d129d98f3d606ce69bc151bbeded40dc684fe11e0f5a831f11f6b36680b22
14language : python
25sudo : required
36dist : xenial
47python : " 3.7"
58# command to install dependencies
9+ before_script :
10+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
11+ - chmod +x ./cc-test-reporter
612install :
713 - pip install pipenv
814 - pipenv install --dev
15+ # - pip install codeclimate-test-reporter
916# command to run tests
1017script :
1118 - flake8 app --statistics --count
1219 - pipenv run pytest
20+ - coverage run --source=app/ -m pytest
21+ # after_success:
22+ # - codeclimate-test-reporter --file .coverage
23+ after_script :
24+ - coverage xml
25+ - if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ PyYAML = "*"
1616flask-pytest = " *"
1717pytest = " *"
1818dataclasses = " *"
19+ coverage = " *"
1920
2021[dev-packages ]
2122
You can’t perform that action at this time.
0 commit comments