update test envs

use pypy3
fix travis osx env
cache pip on appveyor
codecov on appveyor
This commit is contained in:
David Lord 2018-05-29 11:46:04 -07:00
parent 99c56eaafa
commit b34c7174e7
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 21 additions and 15 deletions

View file

@ -1,16 +1,16 @@
environment:
global:
TOXENV: py
TOXENV: py,codecov
matrix:
- PYTHON: C:\Python36
- PYTHON: C:\Python27
- PYTHON: C:\Python36-x64
- PYTHON: C:\Python27-x64
init:
- SET PATH=%PYTHON%;%PATH%
install:
- python -m pip install -U pip setuptools wheel tox
- python -m pip install -U tox
build: false
@ -21,3 +21,6 @@ branches:
only:
- master
- /^.*-maintenance$/
cache:
- '%LOCALAPPDATA%\pip\Cache'

View file

@ -14,27 +14,30 @@ matrix:
env: TOXENV=py,codecov
- python: 2.7
env: TOXENV=py,simplejson,devel,lowest,codecov
- python: pypy
- python: pypy3
env: TOXENV=py,codecov
- python: nightly
env: TOXENV=py
- os: osx
language: generic
env: TOXENV=py
env: TOXENV=py3,py2,codecov
cache:
pip: false
directories:
- $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches/pip
allow_failures:
- python: pypy3
- python: nightly
env: TOXENV=py
- os: osx
language: generic
env: TOXENV=py
fast_finish: true
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install python3 redis memcached;
virtualenv -p python3 ~/py-env;
. ~/py-env/bin/activate;
- |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew upgrade python
brew install python@2;
export PATH="/usr/local/opt/python/libexec/bin:${PATH}"
fi
install:

View file

@ -60,7 +60,7 @@ commands =
coverage html
[testenv:codecov]
passenv = CI TRAVIS TRAVIS_*
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
deps = codecov
skip_install = true
commands =