Skip to content

Commit

Permalink
Move Codacity coverage handling to a separate script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Dec 4, 2016
1 parent 8419bbf commit 159cb14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -33,11 +33,10 @@ script:
- if [[ $NMODE == 'nikola' ]]; then nikola; fi
- if [[ $NMODE == 'nikola' ]]; then nikola help; fi
- if [[ $NMODE == 'nikola' ]]; then scripts/baseline.sh check; fi
- if [[ $NMODE == 'nikola' ]]; then scripts/codacity_coverage.sh; fi
- if [[ $NMODE == 'flake8' ]]; then flake8 nikola/; fi
- if [[ $NMODE == 'flake8' ]]; then pydocstyle --count --match-dir='(?!^\\.)(?!data).*' nikola/; fi
after_success:
- if [[ $NMODE == 'nikola' ]]; then coverage xml; fi
- if [[ $NMODE == "nikola" && "$(scripts/getpyver.py short)" == "3.5"]]; then coverage xml; python-codacy-coverage -r coverage.xml; fi
notifications:
irc:
channels:
Expand Down
6 changes: 6 additions & 0 deletions scripts/codacity_coverage.sh
@@ -0,0 +1,6 @@
#!/bin/bash
PYVER=$(scripts/getpyver.py short)
if [[ $PYVER == '3.5' ]]; then
coverage xml
python-codacy-coverage -r coverage.xml
fi

0 comments on commit 159cb14

Please sign in to comment.