run-full-tests 960 B

123456789101112131415161718192021
  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 mongodb-tools \
  11. py3-ruamel.yaml py3-ruamel.yaml.clib
  12. # If certain dependencies of black are available in this version of Alpine, install them.
  13. apk add --no-cache py3-typed-ast py3-regex || true
  14. python3 -m pip install --no-cache --upgrade pip==22.0.3 setuptools==60.8.1
  15. pip3 install tox==3.24.5
  16. export COVERAGE_FILE=/tmp/.coverage
  17. tox --workdir /tmp/.tox --sitepackages
  18. tox --workdir /tmp/.tox --sitepackages -e end-to-end