Update etcd version, add py36

Also remove the upper constraints
This commit is contained in:
Davanum Srinivas 2017-08-30 09:15:13 -04:00
parent 4aa5968cb8
commit ab6f262ea1
3 changed files with 40 additions and 21 deletions

View File

@ -1,23 +1,40 @@
# ref: https://docs.travis-ci.com/user/languages/python dist: trusty
language: python sudo: required
sudo: true
services: services:
- docker - docker
env: language: python
- TOXENV=pep8 matrix:
- TOXENV=pypy include:
- TOXENV=pypy-etcd - python: 2.7
- TOXENV=py27 env: TOXENV=pep8
- TOXENV=py27-etcd - python: 2.7
- TOXENV=py27-codecov env: TOXENV=py27
- TOXENV=py35 - python: 2.7
- TOXENV=py35-etcd env: TOXENV=py27-etcd
- TOXENV=docs - python: 2.7
- TOXENV=examples env: TOXENV=py27-codecov
- TOXENV=releasenotes - python: pypy
env: TOXENV=pypy
- python: pypy
env: TOXENV=pypy-etcd
- python: 3.5
env: TOXENV=py35
- python: 3.5
env: TOXENV=py35-etcd
- python: 3.6
env: TOXENV=py36
- python: 3.6
env: TOXENV=py36-etcd
before_install:
- python --version
- uname -a
- lsb_release -a
install: install:
- pip install tox - python -m pip install pip -U
- python -m pip install tox coverage coveralls
- python -m virtualenv --version
- python -m easy_install --version
- python -m pip --version
- python -m tox --version
script: script:
- tox - tox

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -eux set -eux
if [ -z "$(which etcd)" ]; then if [ -z "$(which etcd)" ]; then
ETCD_VERSION=3.1.4 ETCD_VERSION=3.1.10
case `uname -s` in case `uname -s` in
Darwin) Darwin)
OS=darwin OS=darwin

View File

@ -1,12 +1,11 @@
[tox] [tox]
minversion = 2.0 minversion = 2.0
envlist = py35,py27,pypy,pep8 envlist = py36,py35,py27,pypy,pep8
skipsdist = True skipsdist = True
[testenv] [testenv]
passenv = TOXENV CI TRAVIS TRAVIS_* passenv = TOXENV CI TRAVIS TRAVIS_*
usedevelop = True usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning PYTHONWARNINGS=default::DeprecationWarning
@ -43,6 +42,9 @@ commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python
[testenv:py35-etcd] [testenv:py35-etcd]
commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python setup.py test --slowest --testr-args='{posargs}' commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python setup.py test --slowest --testr-args='{posargs}'
[testenv:py36-etcd]
commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python setup.py test --slowest --testr-args='{posargs}'
[testenv:examples] [testenv:examples]
commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python {toxinidir}/etcd3gw/examples/etcd.py commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python {toxinidir}/etcd3gw/examples/etcd.py