@@ -224,17 +224,17 @@ before_install:
224
224
- if [ $TRAVIS_OS_NAME == osx ] ; then brew install coverage $INSTALL || true ; fi
225
225
- if [ $TRAVIS_OS_NAME == osx ] ; then brew install codecov || true ; fi
226
226
- if [ $TRAVIS_OS_NAME == osx ] ; then brew install pip || true ; fi
227
- - if [ $TRAVIS_OS_NAME == osx ] ; then export VERSIONER_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION:-3.6 } || true ; fi
227
+ - if [ $TRAVIS_OS_NAME == osx ] ; then export VERSIONER_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION:-3.7 } || true ; fi
228
228
- if [ $TRAVIS_OS_NAME == osx ] ; then defaults write com.apple.versioner.python Version $TRAVIS_PYTHON_VERSION || true ; fi
229
229
- travis_retry pip install tox || pip install tox || true ;
230
230
- travis_retry pip install coverage || true ;
231
231
- travis_retry pip install codecov || true ;
232
232
- travis_retry python -m pip install coverage || python -m pip install coverage || true ;
233
233
- travis_retry python -m pip install codecov || python -m pip install codecov || true ;
234
- - travis_retry python3 -m pip install tox || python3 -m pip install tox || true ;
235
- - travis_retry python3 -m pip install coverage || python3 -m pip install coverage || true ;
236
- - travis_retry python3 -m pip install codecov || python3 -m pip install codecov || true ;
237
- - travis_retry python3 -m pip install -r requirements.txt || python3 -m pip install -r requirements.txt || true ;
234
+ - travis_retry python3 -m pip3 install tox || python3 -m pip install tox || true ;
235
+ - travis_retry python3 -m pip3 install coverage || python3 -m pip install coverage || true ;
236
+ - travis_retry python3 -m pip3 install codecov || python3 -m pip install codecov || true ;
237
+ - travis_retry python3 -m pip3 install -r requirements.txt || python3 -m pip install -r requirements.txt || true ;
238
238
239
239
# The following is used to get coveralls working: add affter codecov
240
240
# - travis_retry pip install python-coveralls 2>/dev/null || python3 -m pip install python-coveralls || true ;
@@ -246,6 +246,7 @@ before_script:
246
246
- if [ $TRAVIS_OS_NAME == osx ] ; then echo "SKIP code climate" ; else curl -L --url https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 -o ./cc-test-reporter 3>/dev/null 2>/dev/null || true ; fi ;
247
247
- if [ $TRAVIS_OS_NAME == osx ] ; then echo "SKIP code climate" ; else chmod +x ./cc-test-reporter || true ; fi ;
248
248
- if [ $TRAVIS_OS_NAME == osx ] ; then echo "SKIP code climate" ; else ./cc-test-reporter before-build || true ; fi ;
249
+ - if [ $TRAVIS_OS_NAME == osx ] ; then echo "SKIP deepsource" ; else (curl https://deepsource.io/cli | sh) || true ; fi ;
249
250
250
251
script :
251
252
- make clean ;
@@ -261,6 +262,7 @@ after_failure:
261
262
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage" ; else coverage combine 2>/dev/null || true ; fi ;
262
263
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage xml" ; else coverage xml 2>/dev/null || true ; fi ;
263
264
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP codecov" ; else codecov 2>/dev/null || true ; fi ;
265
+ - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP deepsource" ; else ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml 2>/dev/null || true ; fi ;
264
266
- if [ $TRAVIS_OS_NAME == osx ] || [ $TRAVIS_PYTHON_VERSION == "3.2" ] || [ $TRAVIS_PYTHON_VERSION == "3.3" ] ; then echo "SKIP code climate" ; else ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT || true ; fi ;
265
267
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] || [ $TRAVIS_PYTHON_VERSION == "3.3" ] ; then echo "SKIP codecov" ; else codecov 2>/dev/null || true ; fi ;
266
268
- make clean 2>/dev/null || true
@@ -269,6 +271,7 @@ after_success:
269
271
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage" ; else coverage combine 2>/dev/null || true ; fi ;
270
272
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage xml" ; else coverage xml 2>/dev/null || true ; fi ;
271
273
- if [ $TRAVIS_OS_NAME == osx ] || [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP code climate" ; else ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT || true ; fi ;
274
+ - if [ $TRAVIS_OS_NAME == osx ] || [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP deepsource" ; else ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml 2>/dev/null || true ; fi ;
272
275
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP codecov" ; else codecov || true ; fi ;
273
276
- travis_retry python3 -m pip install python-coveralls || python3 -m pip install python-coveralls || true ;
274
277
- if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP codecov" ; else coveralls 2>/dev/null || true ; fi ;
0 commit comments