fix travis so that python 3.7 testing uses a recent version
language: python
-sudo: false
-python:
- - 2.7
- - 3.4
- - 3.5
- - 3.6
- - 3.7-dev
- - pypy
- - pypy3
+before_install:
+ # https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-382599654
+ - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo add-apt-repository ppa:deadsnakes/ppa -y; fi
+ - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo sudo apt-get update; fi
install:
- pip install -r developer_requirements.txt
script:
@@ -25,3 +20,26 @@ deploy:
tags: true
condition: $TRAVIS_PYTHON_VERSION != *"pypy"*
+matrix:
+ include:
+ - sudo: False
+ dist: trusty
+ python: 2.7
+ - sudo: False
+ dist: trusty
+ python: 3.4
+ - sudo: False
+ dist: trusty
+ python: 3.5
+ - sudo: False
+ dist: trusty
+ python: 3.6
+ - sudo: required
+ dist: xenial
+ python: 3.7-dev
+ - sudo: False
+ dist: trusty
+ python: pypy
+ - sudo: False
+ dist: trusty
+ python: pypy3
