8000 add codeclimate coverage · shopro/wp-api-python@da3dbd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit da3dbd9

Browse files
author
derwentx
committed
add codeclimate coverage
1 parent 04a34d2 commit da3dbd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: python
22
sudo: required
33
env:
44
- CODECOV_TOKEN: "da32b183-0d8b-4dc2-9bf9-e1743a39b2c8"
5+
- CC_TEST_REPORTER_ID: "f65f25793658d7b33a3729b7b0303fef71fca3210105bb5b83605afb2fee687e"
56
services:
67
- docker
78
python:
@@ -14,8 +15,13 @@ install:
1415
- pip install .
1516
- pip install -r requirements-test.txt
1617
- docker exec -it wpapipython_woocommerce_1 bash -c 'until [ -f .done ]; do sleep 1; done; echo "complete"'
18+
before_script:
19+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
20+
- chmod +x ./cc-test-reporter
21+
- ./cc-test-reporter before-build
1722
# command to run tests
1823
script:
1924
- py.test --cov=wordpress tests.py
2025
after_success:
2126
- codecov
27+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT --debug

0 commit comments

Comments
 (0)
0