Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeepSource PR check and send cov-report to DeepSource #282

Merged
merged 1 commit into from
Aug 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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