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
|
|
|
|
|
2022-02-08 21:05:02 +01:00
|
|
|
apk add --no-cache python3 py3-pip borgbackup postgresql-client mariadb-client mongodb-tools \
|
2023-03-03 22:11:14 +01:00
|
|
|
py3-ruamel.yaml py3-ruamel.yaml.clib bash sqlite
|
2020-11-26 02:42:04 +01:00
|
|
|
# If certain dependencies of black are available in this version of Alpine, install them.
|
|
|
|
apk add --no-cache py3-typed-ast py3-regex || true
|
2022-08-12 23:53:20 +02:00
|
|
|
python3 -m pip install --no-cache --upgrade pip==22.2.2 setuptools==64.0.1
|
|
|
|
pip3 install --ignore-installed tox==3.25.1
|
2019-12-12 06:24:37 +01:00
|
|
|
export COVERAGE_FILE=/tmp/.coverage
|
2020-11-23 02:27:21 +01:00
|
|
|
tox --workdir /tmp/.tox --sitepackages
|
|
|
|
tox --workdir /tmp/.tox --sitepackages -e end-to-end
|