Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Commit

Permalink
Update etcd version, add py36
Browse files Browse the repository at this point in the history
Also remove the upper constraints
  • Loading branch information
dims committed Aug 30, 2017
1 parent 4aa5968 commit ab6f262
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 21 deletions.
53 changes: 35 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
sudo: true
dist: trusty
sudo: required
services:
- docker
env:
- TOXENV=pep8
- TOXENV=pypy
- TOXENV=pypy-etcd
- TOXENV=py27
- TOXENV=py27-etcd
- TOXENV=py27-codecov
- TOXENV=py35
- TOXENV=py35-etcd
- TOXENV=docs
- TOXENV=examples
- TOXENV=releasenotes

language: python
matrix:
include:
- python: 2.7
env: TOXENV=pep8
- python: 2.7
env: TOXENV=py27
- python: 2.7
env: TOXENV=py27-etcd
- python: 2.7
env: TOXENV=py27-codecov
- 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:
- 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:
- tox
2 changes: 1 addition & 1 deletion setup-etcd-env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -eux
if [ -z "$(which etcd)" ]; then
ETCD_VERSION=3.1.4
ETCD_VERSION=3.1.10
case `uname -s` in
Darwin)
OS=darwin
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[tox]
minversion = 2.0
envlist = py35,py27,pypy,pep8
envlist = py36,py35,py27,pypy,pep8
skipsdist = True

[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_*
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 =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
Expand Down Expand Up @@ -43,6 +42,9 @@ commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python
[testenv:py35-etcd]
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]
commands = {toxinidir}/setup-etcd-env.sh pifpaf -g TOOZ_TEST run etcd -- python {toxinidir}/etcd3gw/examples/etcd.py

Expand Down

0 comments on commit ab6f262

Please sign in to comment.