run-full-tests 848 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # This script installs test dependencies and runs all tests, including end-to-end tests. It
  3. # is designed to run inside a test container, and presumes that other test infrastructure like
  4. # databases are already running. Therefore, on a developer machine, you should not run this script
  5. # directly. Instead, run scripts/run-full-dev-tests
  6. #
  7. # For more information, see:
  8. # https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/
  9. set -e
  10. apk add --no-cache python3 py3-pip borgbackup postgresql-client mariadb-client
  11. apk add --no-cache black || true # If black is available in this version of Alpine, install it.
  12. python3 -m pip install --upgrade pip==20.2.4 setuptools==50.3.2
  13. pip3 install tox==3.20.1
  14. export COVERAGE_FILE=/tmp/.coverage
  15. tox --workdir /tmp/.tox --sitepackages
  16. tox --workdir /tmp/.tox --sitepackages -e end-to-end