Skip to content

Commit

Permalink
DeepSource Integeration for Commit checks and Test Coverage (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
chattarajoy committed Aug 9, 2019
1 parent 22880b2 commit e18080a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ install:
- pip install -r requirements.txt
- "python setup.py install"
- pip install mock
- pip install pytest==3.2.0
- pip install pytest==3.2.0 pytest-cov==2.6.0
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
- curl https://deepsource.io/cli | sh
# command to run tests
script: py.test
env: BOTO_CONFIG=/tmp/nowhere
script:
- py.test --cov=./ --cov-report xml
- ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
env:
- BOTO_CONFIG=/tmp/nowhere DEEPSOURCE_DSN=https://c9d4fb28ce6f41798861936c25b0361e@deepsource.io
dist: trusty

0 comments on commit e18080a

Please sign in to comment.