Enable automated testing with Python 3.5
and switch travis to use tox
This commit is contained in:
parent
5af86d691d
commit
864fa66f22
21
.travis.yml
21
.travis.yml
@ -1,13 +1,20 @@
|
|||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "pypy"
|
- 3.5
|
||||||
- "2.7"
|
env:
|
||||||
- "3.3"
|
- TOXENV=py27
|
||||||
- "3.4"
|
- TOXENV=py33
|
||||||
cache: pip
|
- TOXENV=py34
|
||||||
# command to run tests
|
- TOXENV=py35
|
||||||
script: make travis
|
- TOXENV=pypy
|
||||||
|
- TOXENV=flake8
|
||||||
|
install: pip install tox
|
||||||
|
script: tox
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- .tox
|
||||||
|
- $HOME/.cache/pip
|
||||||
after_success: make coveralls
|
after_success: make coveralls
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
8
Makefile
8
Makefile
@ -67,14 +67,6 @@ endif
|
|||||||
$(pip) install coveralls
|
$(pip) install coveralls
|
||||||
$(pip) install --allow-all-external -e .
|
$(pip) install --allow-all-external -e .
|
||||||
|
|
||||||
travis: python
|
|
||||||
$(nose) -s --with-coverage --cover-package hy
|
|
||||||
ifeq (PyPy,$(findstring PyPy,$(shell python -V 2>&1 | tail -1)))
|
|
||||||
@echo "skipping flake8 on pypy"
|
|
||||||
else
|
|
||||||
flake8 hy bin tests
|
|
||||||
endif
|
|
||||||
|
|
||||||
coveralls:
|
coveralls:
|
||||||
$(coveralls)
|
$(coveralls)
|
||||||
|
|
||||||
|
1
setup.py
1
setup.py
@ -89,6 +89,7 @@ setup(
|
|||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.3",
|
"Programming Language :: Python :: 3.3",
|
||||||
"Programming Language :: Python :: 3.4",
|
"Programming Language :: Python :: 3.4",
|
||||||
|
"Programming Language :: Python :: 3.5",
|
||||||
"Topic :: Software Development :: Code Generators",
|
"Topic :: Software Development :: Code Generators",
|
||||||
"Topic :: Software Development :: Compilers",
|
"Topic :: Software Development :: Compilers",
|
||||||
"Topic :: Software Development :: Libraries",
|
"Topic :: Software Development :: Libraries",
|
||||||
|
4
tox.ini
4
tox.ini
@ -1,11 +1,13 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,pypy,py33,flake8
|
envlist = py27,pypy,py33,py34,py35,flake8
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
pip install --allow-all-external -e .
|
pip install --allow-all-external -e .
|
||||||
nosetests
|
nosetests
|
||||||
|
passenv =
|
||||||
|
TERM
|
||||||
deps =
|
deps =
|
||||||
-rrequirements-dev.txt
|
-rrequirements-dev.txt
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user