Merge pull request #3044 from garenchan/ci-test

Add Python 3.7 to CI.
This commit is contained in:
David Lord 2019-01-06 08:00:23 -08:00 committed by GitHub
commit 446cea9221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 26 deletions

View file

@ -3,7 +3,7 @@ environment:
TOXENV: py,codecov TOXENV: py,codecov
matrix: matrix:
- PYTHON: C:\Python36-x64 - PYTHON: C:\Python37-x64
- PYTHON: C:\Python27-x64 - PYTHON: C:\Python27-x64
init: init:

View file

@ -1,34 +1,30 @@
os: linux os: linux
sudo: false dist: xenial
language: python language: python
python:
- "3.7"
- "3.6"
- "3.5"
- "3.4"
- "2.7"
- nightly
- pypy3.5-6.0
env: TOXENV=py,codecov
matrix: matrix:
include: include:
- python: 3.6 - env: TOXENV=docs-html
env: TOXENV=py,simplejson,devel,lowest,codecov - env: TOXENV=devel,lowest,codecov
- python: 3.6
env: TOXENV=docs-html
- python: 3.5
env: TOXENV=py,codecov
- python: 3.4
env: TOXENV=py,codecov
- python: 2.7
env: TOXENV=py,simplejson,devel,lowest,codecov
- python: pypy3
env: TOXENV=py,codecov
- python: nightly
env: TOXENV=py
- os: osx - os: osx
language: generic language: generic
env: TOXENV=py3,py2,codecov env: TOXENV=py3,codecov
cache: cache:
pip: false
directories: directories:
- $HOME/Library/Caches/Homebrew - $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches/pip - $HOME/Library/Caches/pip
allow_failures: allow_failures:
- python: pypy3
- python: nightly - python: nightly
- python: pypy3.5-6.0
- os: osx - os: osx
fast_finish: true fast_finish: true
@ -36,7 +32,6 @@ before_install:
- | - |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew upgrade python brew upgrade python
brew install python@2;
export PATH="/usr/local/opt/python/libexec/bin:${PATH}" export PATH="/usr/local/opt/python/libexec/bin:${PATH}"
fi fi
@ -47,12 +42,15 @@ script:
- tox - tox
cache: cache:
- pip directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
branches: branches:
only: only:
- master - master
- /^.*-maintenance$/ - /^\d+(\.\d+)*-maintenance$/
- /^\d+(\.\d+)*(\.x)?$/
notifications: notifications:
email: false email: false

View file

@ -1,9 +1,9 @@
[tox] [tox]
envlist = envlist =
py{36,35,34,27,py} py{37,36,35,34,27,py}
py{36,27,py}-simplejson py{37,27,py}-simplejson
py{36,27,py}-devel py{37,27,py}-devel
py{36,27,py}-lowest py{37,27,py}-lowest
docs-html docs-html
coverage-report coverage-report