Skip to content

Commit

Permalink
Add coverage reports for codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
samj1912 committed May 13, 2017
1 parent d44507a commit e09d86f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
os: linux
dist: trusty
language: python
python:
python:
- "3.5"
- "3.6"
cache:
Expand All @@ -12,6 +12,9 @@ env:
- PIP_INSTALL="pip install"
- DISCID="$PIP_INSTALL discid" MUTAGEN="$PIP_INSTALL mutagen>=1.37"
- BABEL="$PIP_INSTALL babel"
- NOSE="$PIP_INSTALL nose2"
- COVERAGE="$PIP_INSTALL nose-cov"
- CODACY="$PIP_INSTALL codacy-coverage"
matrix:
- PYQT="$PIP_INSTALL pyqt5==5.7.1"
- PYQT="$PIP_INSTALL pyqt5==5.8"
Expand All @@ -24,6 +27,8 @@ before_install:
- $PYQT
- $MUTAGEN
- $DISCID
- $NOSE
- $COVERAGE
- touch ~/.transifexrc
- printf "[https://www.transifex.com]\nhostname = https://www.transifex.com\npassword = $TX_PASSWORD\ntoken =\nusername = $TX_USERNAME" > ~/.transifexrc
install:
Expand All @@ -39,8 +44,9 @@ install:
- python setup.py patch_version --platform=test
- python setup.py install
# Run the tests!
script: "python setup.py test -v"

script: "nose2 -v --with-coverage --coverage picard --coverage-report xml"
after_success:
- 'if [ ! -z "${CODACY_PROJECT_TOKEN}" ]; then $CODACY; python-codacy-coverage -r coverage.xml; fi'
# Tell people that tests were run
notifications:
irc: "chat.freenode.net#metabrainz"

0 comments on commit e09d86f

Please sign in to comment.