@@ -224,17 +224,17 @@ before_install:
224224 - if [ $TRAVIS_OS_NAME == osx ] ; then brew install coverage $INSTALL || true ; fi
225225 - if [ $TRAVIS_OS_NAME == osx ] ; then brew install codecov || true ; fi
226226 - 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
228228 - if [ $TRAVIS_OS_NAME == osx ] ; then defaults write com.apple.versioner.python Version $TRAVIS_PYTHON_VERSION || true ; fi
229229 - travis_retry pip install tox || pip install tox || true ;
230230 - travis_retry pip install coverage || true ;
231231 - travis_retry pip install codecov || true ;
232232 - travis_retry python -m pip install coverage || python -m pip install coverage || true ;
233233 - 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 ;
238238
239239# The following is used to get coveralls working: add affter codecov
240240# - travis_retry pip install python-coveralls 2>/dev/null || python3 -m pip install python-coveralls || true ;
@@ -246,6 +246,7 @@ before_script:
246246 - 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 ;
247247 - if [ $TRAVIS_OS_NAME == osx ] ; then echo "SKIP code climate" ; else chmod +x ./cc-test-reporter || true ; fi ;
248248 - 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 ;
249250
250251script :
251252 - make clean ;
@@ -261,6 +262,7 @@ after_failure:
261262 - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage" ; else coverage combine 2>/dev/null || true ; fi ;
262263 - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage xml" ; else coverage xml 2>/dev/null || true ; fi ;
263264 - 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 ;
264266 - 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 ;
265267 - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] || [ $TRAVIS_PYTHON_VERSION == "3.3" ] ; then echo "SKIP codecov" ; else codecov 2>/dev/null || true ; fi ;
266268 - make clean 2>/dev/null || true
@@ -269,6 +271,7 @@ after_success:
269271 - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage" ; else coverage combine 2>/dev/null || true ; fi ;
270272 - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP coverage xml" ; else coverage xml 2>/dev/null || true ; fi ;
271273 - 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 ;
272275 - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP codecov" ; else codecov || true ; fi ;
273276 - travis_retry python3 -m pip install python-coveralls || python3 -m pip install python-coveralls || true ;
274277 - if [ $TRAVIS_PYTHON_VERSION == "3.2" ] ; then echo "SKIP codecov" ; else coveralls 2>/dev/null || true ; fi ;
0 commit comments