Skip to content

Commit e17829d

Browse files
author
Aaron Suarez
committed
Add code climate to repo
1 parent 13d5522 commit e17829d

File tree

3 files changed

+130
-59
lines changed

3 files changed

+130
-59
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
env:
2+
global:
3+
- CC_TEST_REPORTER_ID=147d129d98f3d606ce69bc151bbeded40dc684fe11e0f5a831f11f6b36680b22
14
language: python
25
sudo: required
36
dist: xenial
47
python: "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
612
install:
713
- pip install pipenv
814
- pipenv install --dev
15+
# - pip install codeclimate-test-reporter
916
# command to run tests
1017
script:
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

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ PyYAML = "*"
1616
flask-pytest = "*"
1717
pytest = "*"
1818
dataclasses = "*"
19+
coverage = "*"
1920

2021
[dev-packages]
2122

Pipfile.lock

Lines changed: 116 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)