Skip to content

Commit 3d3b7aa

Browse files
Merge pull request #80 from aaron-suarez/add-codeclimate
Add code climate to repo
2 parents 13d5522 + 3888f73 commit 3d3b7aa

File tree

3 files changed

+128
-59
lines changed

3 files changed

+128
-59
lines changed

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1+
env:
2+
global:
3+
- CC_TEST_REPORTER_ID=147d129d98f3d606ce69bc151bbeded40dc684fe11e0f5a831f11f6b36680b22
4+
- SQLALCHEMY_DATABASE_URI="sqlite:///:memory:"
15
language: python
26
sudo: required
37
dist: xenial
48
python: "3.7"
59
# command to install dependencies
10+
before_script:
11+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
12+
- chmod +x ./cc-test-reporter
613
install:
714
- pip install pipenv
815
- pipenv install --dev
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_script:
22+
- coverage xml
23+
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

Pipfile

+1
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

+116-59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)