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 authored Aug 9, 2019
1 parent 44d37fa commit c266c97
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version = 1

test_patterns = [
'tests/**'
]

exclude_patterns = [
'example/**'
]

[[analyzers]]
name = 'python'
enabled = true
runtime_version = '2.x.x'
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 c266c97

Please sign in to comment.