Skip to content

Commit a1a69d3

Browse files
Merge pull request sendgrid#537 from prashuchaudhary/patch-1
Add unittesting support to .codeclimate.yml
2 parents b75a746 + 15734ce commit a1a69d3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ python:
77
- '3.4'
88
- '3.5'
99
- '3.6'
10+
env:
11+
global:
12+
- CC_TEST_REPORTER_ID=$TRAVIS_CODE_CLIMATE_TOKEN
1013
install:
1114
- if [[ $TRAVIS_PYTHON_VERSION == 2.6* ]]; then pip install unittest2; fi
1215
- python setup.py install
@@ -23,10 +26,14 @@ addons:
2326
before_script:
2427
- "./test/prism.sh &"
2528
- sleep 20
29+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
30+
- chmod +x ./cc-test-reporter
31+
- ./cc-test-reporter before-build
2632
script:
2733
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then coverage run -m unittest2 discover; else coverage run -m unittest discover; fi
2834
after_script:
2935
- codecov
36+
- ./cc-test-reporter after-build --exit-code $?
3037
before_deploy:
3138
- python ./register.py
3239
deploy:

0 commit comments

Comments
 (0)