Skip to content
Permalink
Browse files
Move Codacity coverage handling to a separate script
  • Loading branch information
Kwpolska committed Dec 4, 2016
1 parent 8419bbf commit 159cb14735be15aad743fca666e2bd76810d2d85
Showing 2 changed files with 7 additions and 2 deletions.
@@ -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:
@@ -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.