jenkins-flake8.sh 604 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -eux
  3. : ${WORKSPACE:="$(pwd)"}
  4. export PYTHONDONTWRITEBYTECODE=yep
  5. export SYNAPSE_CACHE_FACTOR=1
  6. # Output test results as junit xml
  7. export TRIAL_FLAGS="--reporter=subunit"
  8. export TOXSUFFIX="| subunit-1to2 | subunit2junitxml --no-passthrough --output-to=results.xml"
  9. # Write coverage reports to a separate file for each process
  10. export COVERAGE_OPTS="-p"
  11. export DUMP_COVERAGE_COMMAND="coverage help"
  12. # Output flake8 violations to violations.flake8.log
  13. export PEP8SUFFIX="--output-file=violations.flake8.log"
  14. rm .coverage* || echo "No coverage files to remove"
  15. tox -e packaging -e pep8