2019-12-12 01:43:01 +01:00
|
|
|
#!/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
|
|
|
|
|
2020-11-22 23:48:07 +01:00
|
|
|
python -m pip install --upgrade pip==20.2.4
|
|
|
|
pip install tox==3.20.1
|
2019-12-12 06:24:37 +01:00
|
|
|
export COVERAGE_FILE=/tmp/.coverage
|
2020-11-22 23:48:07 +01:00
|
|
|
apk add --no-cache borgbackup postgresql-client mariadb-client py3-typed-ast
|
2019-12-12 06:24:37 +01:00
|
|
|
tox --workdir /tmp/.tox
|
|
|
|
tox --workdir /tmp/.tox -e end-to-end
|