Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Send coverage information to Codacy
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
- Loading branch information
Showing
2 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
before_install: | ||
- "pip install --upgrade pip wheel" | ||
- pip install --upgrade pip wheel | ||
language: python | ||
cache: apt | ||
sudo: false | ||
addons: | ||
apt: | ||
packages: | ||
- language-pack-en-base | ||
- language-pack-pl-base | ||
apt: | ||
packages: | ||
- language-pack-en-base | ||
- language-pack-pl-base | ||
python: | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
- '2.7' | ||
- '3.3' | ||
- '3.4' | ||
- '3.5' | ||
matrix: | ||
include: | ||
- python: "3.5" | ||
env: NMODE=flake8 | ||
- python: '3.5' | ||
env: NMODE=flake8 | ||
env: | ||
NMODE=nikola | ||
matrix: | ||
- NMODE=nikola | ||
global: | ||
secure: GqUDW0j4Ay8pS9tS/g5JBYGtgBG0g0oD2g4X9JXgVchiFj3GIRL+dwiXpgx3LELy7nCWF3EzClFxxMdVqqxizQ/I8xqiA0XL/rf5z/y+9d9nmKOxV8SV73n0eCgsHWkbdSLJ6MKs6s0Trlz9jLu/P+Bhfu2ttqkOH8WttfEf3VE= | ||
install: | ||
- "if [[ $NMODE == 'nikola' ]]; then scripts/getwheelhouse.sh $(scripts/getpyver.py short); fi" | ||
- "if [[ $NMODE == 'nikola' ]]; then pip install -r requirements-tests.txt; if [[ \"$?\" == '1' ]]; then cat /home/travis/.pip/pip.log; false; fi; fi" | ||
- "if [[ $NMODE == 'nikola' ]]; then pip install .; fi" | ||
- "if [[ $NMODE == 'flake8' ]]; then pip install flake8 pydocstyle; fi" | ||
# We run tests and nikola (to see if the command is executable) OR flake8. | ||
# We run `nikola` and `nikola help` because things may break due to human | ||
# errors in argument parsing (cf. 96e78dd) | ||
# WARNING: if you edit this, make sure to replicate your changes in dodo.py and appveyor.yml. | ||
- if [[ $NMODE == 'nikola' ]]; then scripts/getwheelhouse.sh $(scripts/getpyver.py short); fi | ||
- if [[ $NMODE == 'nikola' ]]; then pip install -r requirements-tests.txt; if [[ "$?" == '1' ]]; then cat /home/travis/.pip/pip.log; false; fi; fi | ||
- if [[ $NMODE == 'nikola' ]]; then pip install .; fi | ||
- if [[ $NMODE == 'flake8' ]]; then pip install flake8 pydocstyle; fi | ||
script: | ||
- "if [[ $NMODE == 'nikola' ]]; then py.test --doctest-modules nikola/; fi" | ||
- "if [[ $NMODE == 'nikola' ]]; then py.test tests/; fi" | ||
- "if [[ $NMODE == 'nikola' ]]; then nikola; fi" | ||
- "if [[ $NMODE == 'nikola' ]]; then nikola help; fi" | ||
- "if [[ $NMODE == 'nikola' ]]; then scripts/baseline.sh check; fi" | ||
- "if [[ $NMODE == 'flake8' ]]; then flake8 nikola/; fi" | ||
- "if [[ $NMODE == 'flake8' ]]; then pydocstyle --count --match-dir='(?!^\\\\.)(?!data).*' nikola/; fi" | ||
- if [[ $NMODE == 'nikola' ]]; then py.test --doctest-modules nikola/; fi | ||
- if [[ $NMODE == 'nikola' ]]; then py.test tests/; fi | ||
- if [[ $NMODE == 'nikola' ]]; then nikola; fi | ||
- if [[ $NMODE == 'nikola' ]]; then nikola help; fi | ||
- if [[ $NMODE == 'nikola' ]]; then scripts/baseline.sh check; 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 coveralls; fi" | ||
- 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: | ||
- "chat.freenode.net#nikola" | ||
- chat.freenode.net#nikola | ||
template: | ||
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" | ||
- "Change view: %{compare_url}" | ||
- "Build details: %{build_url}" | ||
- '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}' | ||
- 'Change view: %{compare_url}' | ||
- 'Build details: %{build_url}' | ||
skip_join: true | ||
use_notice: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters