Skip to content

Commit f14615e

Browse files
committed
ci: bump tested Python versions
1 parent 75f1a0d commit f14615e

File tree

2 files changed

+21
-47
lines changed

2 files changed

+21
-47
lines changed

.travis.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
1+
os: linux
2+
dist: bionic
13
language: python
24
python:
3-
- 3.5.0
4-
- 3.5.2
5+
- pypy3.6-7.2.0
56
- 3.5-dev
67
- 3.6
78
- 3.6-dev
9+
- 3.7
810
- 3.7-dev
9-
sudo: false
10-
dist: trusty
11-
matrix:
11+
- 3.8
12+
- 3.8-dev
13+
jobs:
1214
include:
13-
- os: linux
14-
language: generic
15-
env: USE_PYPY_RELEASE_VERSION=5.9-beta
15+
- python: 3.5.0
16+
dist: trusty
17+
# The last pytest to support Python 3.5.2 fails to start with recent attrs
18+
# - python: 3.5.2
19+
# dist: trusty
20+
1621
# Python3.5 on MacOS doesn't currently support TLSv1.2 needed to use pip :(
1722
# http://pyfound.blogspot.fr/2017/01/time-to-upgrade-your-python-tls-v12.html
1823
# - os: osx
1924
# language: generic
2025
# env: MACPYTHON=3.5.4
2126
- os: osx
2227
language: generic
23-
env: MACPYTHON=3.6.3
28+
env: MACPYTHON=3.6.8
29+
- os: osx
30+
language: generic
31+
env: MACPYTHON=3.7.7
32+
- os: osx
33+
language: generic
34+
env: MACPYTHON=3.8.1
2435
- os: linux
2536
language: python
2637
python: 3.6

ci/travis.sh

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -ex
66
YAPF_VERSION=0.22.0
77

88
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
9-
curl -Lo macpython.pkg https://www.python.org/ftp/python/${MACPYTHON}/python-${MACPYTHON}-macosx10.6.pkg
9+
curl -Lo macpython.pkg https://www.python.org/ftp/python/${MACPYTHON}/python-${MACPYTHON}-macosx10.9.pkg
1010
sudo installer -pkg macpython.pkg -target /
1111
ls /Library/Frameworks/Python.framework/Versions/*/bin/
1212
PYTHON_EXE=/Library/Frameworks/Python.framework/Versions/*/bin/python3
@@ -15,43 +15,6 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
1515
source testenv/bin/activate
1616
fi
1717

18-
if [ "$USE_PYPY_NIGHTLY" = "1" ]; then
19-
curl -fLo pypy.tar.bz2 http://buildbot.pypy.org/nightly/py3.5/pypy-c-jit-latest-linux64.tar.bz2
20-
if [ ! -s pypy.tar.bz2 ]; then
21-
# We know:
22-
# - curl succeeded (200 response code; -f means "exit with error if
23-
# server returns 4xx or 5xx")
24-
# - nonetheless, pypy.tar.bz2 does not exist, or contains no data
25-
# This isn't going to work, and the failure is not informative of
26-
# anything involving this package.
27-
ls -l
28-
echo "PyPy3 nightly build failed to download – something is wrong on their end."
29-
echo "Skipping testing against the nightly build for right now."
30-
exit 0
31-
fi
32-
tar xaf pypy.tar.bz2
33-
# something like "pypy-c-jit-89963-748aa3022295-linux64"
34-
PYPY_DIR=$(echo pypy-c-jit-*)
35-
PYTHON_EXE=$PYPY_DIR/bin/pypy3
36-
($PYTHON_EXE -m ensurepip \
37-
&& $PYTHON_EXE -m pip install virtualenv \
38-
&& $PYTHON_EXE -m virtualenv testenv) \
39-
|| (echo "pypy nightly is broken; skipping tests"; exit 0)
40-
source testenv/bin/activate
41-
fi
42-
43-
if [ "$USE_PYPY_RELEASE_VERSION" != "" ]; then
44-
curl -fLo pypy.tar.bz2 https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.5-${USE_PYPY_RELEASE_VERSION}-linux_x86_64-portable.tar.bz2
45-
tar xaf pypy.tar.bz2
46-
# something like "pypy3.5-5.7.1-beta-linux_x86_64-portable"
47-
PYPY_DIR=$(echo pypy3.5-*)
48-
PYTHON_EXE=$PYPY_DIR/bin/pypy3
49-
$PYTHON_EXE -m ensurepip
50-
$PYTHON_EXE -m pip install virtualenv
51-
$PYTHON_EXE -m virtualenv testenv
52-
source testenv/bin/activate
53-
fi
54-
5518
pip install -U pip setuptools wheel
5619

5720
if [ "$CHECK_FORMATTING" = "1" ]; then

0 commit comments

Comments
 (0)