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