add .appveyor.yml; add py34 to travis and tox

This commit is contained in:
Prodesire 2018-01-04 21:47:19 +08:00
parent 31831a1990
commit de578d50ec
3 changed files with 43 additions and 1 deletions

34
.appveyor.yml Normal file
View File

@ -0,0 +1,34 @@
build: off
environment:
matrix:
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
TOXENV: "py27"
- PYTHON: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "64"
TOXENV: "py34"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "64"
TOXENV: "py35"
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
TOXENV: "py36"
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "pip install --disable-pip-version-check --user --upgrade pip"
- "%CMD_IN_ENV% pip install tox coverage"
test_script:
# Run the project tests
- "%CMD_IN_ENV% tox"

View File

@ -1,12 +1,20 @@
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
sudo: false
cache: pip
install:
- pip install tox-travis
script:
- tox
notifications:
email:
recipients:

View File

@ -1,5 +1,5 @@
[tox]
envlist = py{36}
envlist = py27,py34,py35,py36
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH