Skip to content

Commit a8c9d86

Browse files
Hugo Osvaldo Barrerauntitaker
authored andcommitted
Add python 3.5 and 3.6 to CI (untitaker#24)
* Also test on recent python versions * Tidy up and simplify travis' build matrix * Test python 3.5 and 3.6 on windows as well
1 parent 91d58e3 commit a8c9d86

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

.travis.yml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,39 @@ sudo: false
22
os: linux
33
language: python
44

5+
python:
6+
- 2.6
7+
- 2.7
8+
- pypy
9+
- 3.3
10+
- 3.4
11+
- 3.5
12+
- 3.6
13+
- pypy3.3-5.2-alpha1
14+
15+
env:
16+
- TOXENV=test
17+
518
matrix:
619
include:
7-
- os: osx
20+
- # The OS X VM doesn't have any Python support at all
21+
# See https://github.com/travis-ci/travis-ci/issues/2312
22+
os: osx
823
language: generic
9-
env: TOXENV_SUFFIX=test
24+
env: TOXENV=test
25+
before_install:
26+
- brew update
27+
- brew install python3
28+
- virtualenv $HOME/osx-py3 -p python3
29+
- source $HOME/osx-py3/bin/activate
30+
- python: 2.7
31+
env: TOXENV=stylecheck
32+
- python: 3.6
33+
env: TOXENV=stylecheck
1034

11-
python:
12-
- "2.6"
13-
- "2.7"
14-
- "pypy"
15-
- "3.3"
16-
- "3.4"
1735

1836
install:
19-
- # The OS X VM doesn't have any Python support at all
20-
# See https://github.com/travis-ci/travis-ci/issues/2312
21-
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
22-
brew update;
23-
brew install python3;
24-
virtualenv -p python3 $HOME/osx-py3;
25-
. $HOME/osx-py3/bin/activate;
26-
export TRAVIS_PYTHON_VERSION="$(python --version | cut -d ' ' -f 2 | cut -d . -f -2)";
27-
fi
2837
- pip install tox
2938

3039
script:
31-
- export TOX_PY="$(echo py$TRAVIS_PYTHON_VERSION | tr -d . | sed -e 's/pypypy/pypy/')"
32-
- tox -e $TOX_PY-test
33-
- if [ "$TRAVIS_PYTHON_VERSION" = "2.7" ] || [ "$TRAVIS_PYTHON_VERSION" = ".3.5" ]; then
34-
tox -e $TOX_PY-stylecheck;
35-
fi
40+
- tox

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ environment:
44
- PYTHON: "C:/Python27"
55
- PYTHON: "C:/Python33"
66
- PYTHON: "C:/Python34"
7+
- PYTHON: "C:/Python35"
8+
- PYTHON: "C:/Python36"
79

810
init:
911
- "ECHO %PYTHON%"

0 commit comments

Comments
 (0)