Add test support for python 3.6.

This commit is contained in:
Matt Clay 2017-01-10 10:30:41 -08:00
parent b7594070b3
commit f340b8d14f
5 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1 @@
injector.py

View file

@ -0,0 +1 @@
injector.py

View file

@ -74,6 +74,7 @@ SUPPORTED_PYTHON_VERSIONS = (
'2.6', '2.6',
'2.7', '2.7',
'3.5', '3.5',
'3.6',
) )
COMPILE_PYTHON_VERSIONS = tuple(sorted(SUPPORTED_PYTHON_VERSIONS + ('2.4',))) COMPILE_PYTHON_VERSIONS = tuple(sorted(SUPPORTED_PYTHON_VERSIONS + ('2.4',)))

View file

@ -4,9 +4,13 @@ set -o pipefail
add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe' add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports universe'
add-apt-repository 'ppa:fkrull/deadsnakes' add-apt-repository 'ppa:fkrull/deadsnakes'
add-apt-repository 'ppa:jonathonf/python-3.6'
apt-get update -qq 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 pip install tox --disable-pip-version-check

View file

@ -2,6 +2,16 @@
set -o pipefail 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 pip install tox --disable-pip-version-check
ansible-test units --color -v --tox --coverage ansible-test units --color -v --tox --coverage