Skip to content

Commit 944478b

Browse files
committedMay 20, 2020
setting up coverage reports for codeclimate
1 parent 43d2ea4 commit 944478b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ python: "3.7.5"
33
os: linux
44
dist: xenial
55

6+
env:
7+
global:
8+
- CC_TEST_REPORTER_ID=5eac50baf92d803ae86223c6f1d06612a690606c5f9b53c805312630a1a9c89f
9+
610
# To override installing requirements always
711
install: pip --version
812

@@ -14,6 +18,9 @@ before_install:
1418
- mkdir shared
1519
- sudo chmod -R a+rwx shared
1620
- docker build . -t pyghost:v1.0
21+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
22+
- chmod +x ./cc-test-reporter
23+
- ./cc-test-reporter before-build
1724

1825
jobs:
1926
include:
@@ -22,6 +29,7 @@ jobs:
2229

2330
after_success:
2431
- curl -s https://codecov.io/bash | bash
32+
- ./cc-test-reporter after-build -t clover -p shared --exit-code $TRAVIS_TEST_RESULT
2533

2634
#notifications:
2735
# email: agi.uqbar@gmail.com

‎requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ pytest
33
pygame
44
numpy
55
codecov
6+
coverage
67
pytest-cov

0 commit comments

Comments
 (0)