Skip to content

Commit

Permalink
Experimenting with sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
rafspiny committed Jun 29, 2018
1 parent 1e1be33 commit 2c59d96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ dist: trusty
python:
- "3.4"
install: "pip install -r requirements.txt"
before_script:
# Download code climate tools
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- coverage run --omit "*init*.py,test/*,*/.local/lib64/*,*/.local/lib/*,*/site-packages/*" -m unittest
- sonar-scanner -X
Expand All @@ -11,3 +16,6 @@ after_success:
addons:
sonarcloud:
organization: "rafspiny-github" # the key of the org you chose at step #3
after_script:
#- codeclimate-test-reporter < coverage/lcov.info
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
12 changes: 2 additions & 10 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,5 @@ sonar.links.issue=https://github.com/rafspiny/firefox-profiles-recovery/issues
# =====================================================

# SQ standard properties
sonar.sources=model
sonar.tests=test

# Properties specific to language plugins:
# - For JavaScript
# Leaving it unset, use the defautl value "coverage-reports/*coverage-*.xml")
#sonar.python.coverage.reportPath=reports/js/lcov.dat

# Options for branch pluing
sonar.branch.name=development
sonar.sources=logic,model
sonar.tests=test

0 comments on commit 2c59d96

Please sign in to comment.