Devuan deployment of britney2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
756 B

  1. #!/bin/bash
  2. set -e
  3. err=0
  4. PYTEST_COV_OPTIONS=
  5. BRITNEY=./britney.py
  6. git clone https://salsa.debian.org/debian/britney2-tests.git britney2-tests
  7. if [ "x$1" = "x--with-coverage" ]; then
  8. PYTEST_COV_OPTIONS="--cov-branch --cov --cov-report="
  9. BRITNEY=./ci/britney-coverage.sh
  10. TEST_FLAGS=
  11. else
  12. TEST_FLAGS=nocodestyle
  13. fi
  14. export TEST_FLAGS
  15. py.test-3 -v $PYTEST_COV_OPTIONS || err=$?
  16. echo
  17. britney2-tests/bin/runtests "$BRITNEY" britney2-tests/t test-out || err=$?
  18. if [ $err = 0 ] && [ "x$1" = "x--with-coverage" ]; then
  19. python3-coverage report -m
  20. echo
  21. python3-coverage html -d coverage
  22. mkdir codestyle
  23. pycodestyle --config=setup.cfg britney.py britney2 --show-source --count > codestyle/codestyle.txt || :
  24. fi
  25. exit $err