Skip to content

Commit 0acef5f

Browse files
committed
Add Python 3.6 testing
Signed-off-by: Joffrey F <[email protected]>
1 parent a28b9ff commit 0acef5f

File tree

8 files changed

+36
-22
lines changed

8 files changed

+36
-22
lines changed

.travis.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
sudo: false
22
language: python
3-
python:
4-
- "3.5"
5-
env:
6-
- TOX_ENV=py27
7-
# FIXME: default travis worker does not carry py33 anymore. Can this be configured?
8-
# - TOX_ENV=py33
9-
- TOX_ENV=py34
10-
- TOX_ENV=py35
11-
- TOX_ENV=flake8
3+
matrix:
4+
include:
5+
- python: 2.7
6+
env: TOXENV=py27
7+
- python: 3.4
8+
env: TOXENV=py34
9+
- python: 3.5
10+
env: TOXENV=py35
11+
- python: 3.6
12+
env: TOXENV=py36
13+
- env: TOXENV=flake8
14+
1215
install:
1316
- pip install tox
1417
script:
15-
- tox -e $TOX_ENV
18+
- tox

Dockerfile-py3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.5
1+
FROM python:3.6
22

33
RUN mkdir /src
44
WORKDIR /src

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def buildImages = { ->
2727
imageNamePy3 = "${imageNameBase}:py3-${gitCommit()}"
2828

2929
buildImage(imageNamePy2, ".", "py2.7")
30-
buildImage(imageNamePy3, "-f Dockerfile-py3 .", "py3.5")
30+
buildImage(imageNamePy3, "-f Dockerfile-py3 .", "py3.6")
3131
}
3232
}
3333
}

Makefile

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ all: test
33

44
.PHONY: clean
55
clean:
6-
-docker rm -vf dpy-dind
6+
-docker rm -f dpy-dind-py2 dpy-dind-py3
77
find -name "__pycache__" | xargs rm -rf
88

99
.PHONY: build
@@ -45,15 +45,25 @@ TEST_API_VERSION ?= 1.33
4545
TEST_ENGINE_VERSION ?= 17.10.0-ce
4646

4747
.PHONY: integration-dind
48-
integration-dind: build build-py3
49-
docker rm -vf dpy-dind || :
50-
docker run -d --name dpy-dind --privileged dockerswarm/dind:${TEST_ENGINE_VERSION} dockerd\
48+
integration-dind: integration-dind-py2 integration-dind-py3
49+
50+
.PHONY: integration-dind-py2
51+
integration-dind-py2: build
52+
docker rm -vf dpy-dind-py2 || :
53+
docker run -d --name dpy-dind-py2 --privileged dockerswarm/dind:${TEST_ENGINE_VERSION} dockerd\
5154
-H tcp://0.0.0.0:2375 --experimental
5255
docker run -t --rm --env="DOCKER_HOST=tcp://docker:2375" --env="DOCKER_TEST_API_VERSION=${TEST_API_VERSION}"\
53-
--link=dpy-dind:docker docker-sdk-python py.test tests/integration
56+
--link=dpy-dind-py2:docker docker-sdk-python py.test tests/integration
57+
docker rm -vf dpy-dind-py3
58+
59+
.PHONY: integration-dind-py3
60+
integration-dind-py3: build-py3
61+
docker rm -vf dpy-dind-py3 || :
62+
docker run -d --name dpy-dind-py3 --privileged dockerswarm/dind:${TEST_ENGINE_VERSION} dockerd\
63+
-H tcp://0.0.0.0:2375 --experimental
5464
docker run -t --rm --env="DOCKER_HOST=tcp://docker:2375" --env="DOCKER_TEST_API_VERSION=${TEST_API_VERSION}"\
55-
--link=dpy-dind:docker docker-sdk-python3 py.test tests/integration
56-
docker rm -vf dpy-dind
65+
--link=dpy-dind-py3:docker docker-sdk-python3 py.test tests/integration
66+
docker rm -vf dpy-dind-py3
5767

5868
.PHONY: integration-dind-ssl
5969
integration-dind-ssl: build-dind-certs build build-py3

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '{branch}-{build}'
33
install:
44
- "SET PATH=C:\\Python27-x64;C:\\Python27-x64\\Scripts;%PATH%"
55
- "python --version"
6-
- "pip install tox==2.7.0 virtualenv==15.1.0"
6+
- "pip install tox==2.9.1"
77

88
# Build the binary after tests
99
build: false

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
'Programming Language :: Python :: 3.3',
8888
'Programming Language :: Python :: 3.4',
8989
'Programming Language :: Python :: 3.5',
90+
'Programming Language :: Python :: 3.6',
9091
'Topic :: Utilities',
9192
'License :: OSI Approved :: Apache Software License',
9293
],

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27, py33, py34, py35, flake8
2+
envlist = py27, py33, py34, py35, py36, flake8
33
skipsdist=True
44

55
[testenv]

win32-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
-r requirements.txt
2-
pypiwin32==219
2+
pypiwin32>=219

0 commit comments

Comments
 (0)