mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add test support for python 3.6.
This commit is contained in:
parent
b7594070b3
commit
f340b8d14f
5 changed files with 18 additions and 1 deletions
1
test/runner/injector/cover3.6
Symbolic link
1
test/runner/injector/cover3.6
Symbolic link
|
@ -0,0 +1 @@
|
|||
injector.py
|
1
test/runner/injector/runner3.6
Symbolic link
1
test/runner/injector/runner3.6
Symbolic link
|
@ -0,0 +1 @@
|
|||
injector.py
|
|
@ -74,6 +74,7 @@ SUPPORTED_PYTHON_VERSIONS = (
|
|||
'2.6',
|
||||
'2.7',
|
||||
'3.5',
|
||||
'3.6',
|
||||
)
|
||||
|
||||
COMPILE_PYTHON_VERSIONS = tuple(sorted(SUPPORTED_PYTHON_VERSIONS + ('2.4',)))
|
||||
|
|
|
@ -4,9 +4,13 @@ set -o pipefail
|
|||
|
||||
add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
|
||||
add-apt-repository 'ppa:fkrull/deadsnakes'
|
||||
add-apt-repository 'ppa:jonathonf/python-3.6'
|
||||
|
||||
apt-get update -qq
|
||||
apt-get install python2.4 shellcheck -qq
|
||||
apt-get install -qq \
|
||||
shellcheck \
|
||||
python2.4 \
|
||||
python3.6 \
|
||||
|
||||
pip install tox --disable-pip-version-check
|
||||
|
||||
|
|
|
@ -2,6 +2,16 @@
|
|||
|
||||
set -o pipefail
|
||||
|
||||
add-apt-repository 'ppa:ubuntu-toolchain-r/test'
|
||||
add-apt-repository 'ppa:jonathonf/python-3.6'
|
||||
|
||||
apt-get update -qq
|
||||
apt-get install -qq \
|
||||
g++-4.9 \
|
||||
python3.6-dev \
|
||||
|
||||
ln -sf x86_64-linux-gnu-gcc-4.9 /usr/bin/x86_64-linux-gnu-gcc
|
||||
|
||||
pip install tox --disable-pip-version-check
|
||||
|
||||
ansible-test units --color -v --tox --coverage
|
||||
|
|
Loading…
Reference in a new issue