mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 07:01:27 -07:00
Fix installation of ansible venv
ansible-test is included in ansible package. Also, on Fedora 37 with python 3.11, pip is missing. By using ensurepip we solve that issue.
This commit is contained in:
parent
8608208b53
commit
0f5dc50d6d
2 changed files with 11 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -62,7 +62,8 @@ test-integration:
|
||||||
mkdir -p .venv/$(ansible)
|
mkdir -p .venv/$(ansible)
|
||||||
python -m venv .venv/$(ansible)
|
python -m venv .venv/$(ansible)
|
||||||
source .venv/$(ansible)/bin/activate
|
source .venv/$(ansible)/bin/activate
|
||||||
python -m pip install --disable-pip-version-check --user https://github.com/ansible/ansible/archive/$(ansible).tar.gz ansible-test
|
python -m ensurepip
|
||||||
|
python -m pip install --disable-pip-version-check --user https://github.com/ansible/ansible/archive/$(ansible).tar.gz
|
||||||
-set -x; ansible-test integration $(target) -v --color --coverage --diff --docker $(docker_image) --docker-network podman $(_continue_on_errors) $(_keep_containers_alive) --python $(python); set +x
|
-set -x; ansible-test integration $(target) -v --color --coverage --diff --docker $(docker_image) --docker-network podman $(_continue_on_errors) $(_keep_containers_alive) --python $(python); set +x
|
||||||
rm tests/integration/db_engine_version
|
rm tests/integration/db_engine_version
|
||||||
rm tests/integration/connector
|
rm tests/integration/connector
|
||||||
|
|
10
TESTING.md
10
TESTING.md
|
@ -14,7 +14,15 @@ Everytime you push on your fork or you create a pull request, both workflows run
|
||||||
|
|
||||||
You can use GitHub to run ansible-test either on the community repo or your fork. But sometimes you want to quickly test a single version or a single target. To do that, you can use the Makefile present at the root of this repository.
|
You can use GitHub to run ansible-test either on the community repo or your fork. But sometimes you want to quickly test a single version or a single target. To do that, you can use the Makefile present at the root of this repository.
|
||||||
|
|
||||||
Actually, the makefile only support Podman.
|
For now, the makefile only support Podman.
|
||||||
|
|
||||||
|
### Requirements
|
||||||
|
|
||||||
|
- python 3.8+
|
||||||
|
- make
|
||||||
|
|
||||||
|
|
||||||
|
### Makefile options
|
||||||
|
|
||||||
The Makefile accept the following options:
|
The Makefile accept the following options:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue