We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b75a746 + 15734ce commit a1a69d3Copy full SHA for a1a69d3
1 file changed
.travis.yml
@@ -7,6 +7,9 @@ python:
7
- '3.4'
8
- '3.5'
9
- '3.6'
10
+env:
11
+ global:
12
+ - CC_TEST_REPORTER_ID=$TRAVIS_CODE_CLIMATE_TOKEN
13
install:
14
- if [[ $TRAVIS_PYTHON_VERSION == 2.6* ]]; then pip install unittest2; fi
15
- python setup.py install
@@ -23,10 +26,14 @@ addons:
23
26
before_script:
24
27
- "./test/prism.sh &"
25
28
- 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
32
script:
33
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then coverage run -m unittest2 discover; else coverage run -m unittest discover; fi
34
after_script:
35
- codecov
36
+- ./cc-test-reporter after-build --exit-code $?
37
before_deploy:
38
- python ./register.py
39
deploy:
0 commit comments