mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Fix 2.9 unit tests.
* Another try.
(cherry picked from commit 26a91e811f
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
69b7f68379
commit
472c4670d5
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,11 @@ esac
|
||||||
|
|
||||||
ansible-test env --timeout "${timeout}" --color -v
|
ansible-test env --timeout "${timeout}" --color -v
|
||||||
|
|
||||||
|
if [ "$2" == "2.9" ]; then
|
||||||
|
# 1.5.0+ will not install for Python 3.6+ in the 2.9 setting (due to `enum` being installed)
|
||||||
|
echo "pynacl >= 1.4.0, < 1.5.0; python_version >= '3.6'" >> tests/unit/requirements.txt
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$2" == "2.10" ]; then
|
if [ "$2" == "2.10" ]; then
|
||||||
sed -i -E 's/^redis($| .*)/redis < 4.1.0/g' tests/unit/requirements.txt
|
sed -i -E 's/^redis($| .*)/redis < 4.1.0/g' tests/unit/requirements.txt
|
||||||
sed -i -E 's/^python-gitlab($| .*)/python-gitlab < 2.10.1 ; python_version >= '\'3.6\''/g' tests/unit/requirements.txt
|
sed -i -E 's/^python-gitlab($| .*)/python-gitlab < 2.10.1 ; python_version >= '\'3.6\''/g' tests/unit/requirements.txt
|
||||||
|
|
Loading…
Reference in a new issue