mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-16 01:45:25 -07:00
Add new default Docker container for ansible-test. (#31944)
* Add new default Docker container for ansible-test. * Update ansible-test change classification. * Update list of disabled pylint rules. * Fix pylint issues with ansible-test.
This commit is contained in:
parent
fbbffbabde
commit
f76afab6e5
9 changed files with 115 additions and 3 deletions
2
test/runner/docker/deadsnakes.list
Normal file
2
test/runner/docker/deadsnakes.list
Normal file
|
@ -0,0 +1,2 @@
|
|||
deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial main
|
||||
deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial main
|
23
test/runner/docker/requirements.sh
Executable file
23
test/runner/docker/requirements.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash -eu
|
||||
|
||||
python_versions=(
|
||||
2.6
|
||||
2.7
|
||||
3.5
|
||||
3.6
|
||||
)
|
||||
|
||||
requirements=()
|
||||
|
||||
for requirement in *.txt; do
|
||||
if [ "${requirement}" != "constraints.txt" ]; then
|
||||
requirements+=("-r" "${requirement}")
|
||||
fi
|
||||
done
|
||||
|
||||
for python_version in "${python_versions[@]}"; do
|
||||
set -x
|
||||
"python${python_version}" /tmp/get-pip.py -c constraints.txt
|
||||
"pip${python_version}" install --disable-pip-version-check -c constraints.txt "${requirements[@]}"
|
||||
set +x
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue