Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-tox.yaml
Show All 37 Lines | builders: | ||||
echo " PHID=$PHID" | echo " PHID=$PHID" | ||||
echo " DIFF_ID=$DIFF_ID" | echo " DIFF_ID=$DIFF_ID" | ||||
- shell: | | - shell: | | ||||
if (python3 -m tox -a 2>/dev/null | grep -qx flake8-phab ); then | if (python3 -m tox -a 2>/dev/null | grep -qx flake8-phab ); then | ||||
python3 -m tox -e flake8-phab | python3 -m tox -e flake8-phab | ||||
else | else | ||||
python3 -m tox -e flake8 | python3 -m tox -e flake8 | ||||
fi | fi | ||||
- shell: | | |||||
if (python3 -m tox -a 2>/dev/null | grep -qx mypy ); then | |||||
python3 -m tox -e mypy | |||||
fi | |||||
- shell: python3 -m tox --result-json tox-results.json -e $TOX_ENVIRONMENT -- -v | - shell: python3 -m tox --result-json tox-results.json -e $TOX_ENVIRONMENT -- -v | ||||
publishers: | publishers: | ||||
- phabricator: | - phabricator: | ||||
uberalls-enabled: false | uberalls-enabled: false | ||||
comment-on-success: true | comment-on-success: true | ||||
comment-with-console-link-on-failure: true | comment-with-console-link-on-failure: true | ||||
process-lint: true | process-lint: true | ||||
lint-file: .phabricator-lint | lint-file: .phabricator-lint | ||||
lint-file-size: 1000000 | lint-file-size: 1000000 | ||||
- archive: | - archive: | ||||
artifacts: "*.json,.coverage*,.phabricator*" | artifacts: "*.json,.coverage*,.phabricator*" |