Commit bc98ff73 authored by Paul Brown's avatar Paul Brown

add tox.ini, use tox with travis

parent 1cc9021c
...@@ -26,3 +26,4 @@ examples/appengine/lib ...@@ -26,3 +26,4 @@ examples/appengine/lib
env env
*.egg *.egg
.eggs .eggs
.tox/
...@@ -6,6 +6,7 @@ python: ...@@ -6,6 +6,7 @@ python:
- "3.3" - "3.3"
- "3.4" - "3.4"
- "3.5" - "3.5"
- "3.6"
env: env:
- WTFORMS_VERSION=1 - WTFORMS_VERSION=1
...@@ -17,17 +18,16 @@ addons: ...@@ -17,17 +18,16 @@ addons:
services: services:
- postgresql - postgresql
- mongodb - mongodb
before_script: before_script:
- psql -U postgres -c 'CREATE DATABASE flask_admin_test;' - psql -U postgres -c 'CREATE DATABASE flask_admin_test;'
- psql -U postgres -c 'CREATE EXTENSION postgis;' flask_admin_test - psql -U postgres -c 'CREATE EXTENSION postgis;' flask_admin_test
- psql -U postgres -c 'CREATE EXTENSION hstore;' flask_admin_test - psql -U postgres -c 'CREATE EXTENSION hstore;' flask_admin_test
install: install:
- pip install "wtforms<$WTFORMS_VERSION.99" - pip install tox
- pip install -r requirements-dev.txt
script: nosetests flask_admin/tests --with-coverage --cover-erase --cover-inclusive script: tox -e py-WTForms$WTFORMS_VERSION
after_success: after_success:
- coveralls - coveralls
...@@ -95,6 +95,8 @@ For all the tests to pass successfully, you'll need Postgres & MongoDB to be run ...@@ -95,6 +95,8 @@ For all the tests to pass successfully, you'll need Postgres & MongoDB to be run
CREATE DATABASE flask_admin_test; CREATE DATABASE flask_admin_test;
CREATE EXTENSION postgis; CREATE EXTENSION postgis;
You can also run the tests on multiple environments using *tox*.
3rd Party Stuff 3rd Party Stuff
--------------- ---------------
......
Flask>=0.7 Flask>=0.7
wtforms
Flask-SQLAlchemy>=0.15 Flask-SQLAlchemy>=0.15
peewee peewee
wtf-peewee wtf-peewee
......
[tox]
envlist = py{26,27,33,34,35,36}-WTForms{1,2}
skipsdist = true
skip_missing_interpreters = true
[testenv]
usedevelop = true
deps =
WTForms1: WTForms==1.0.5
WTForms2: WTForms>=2.0
-r{toxinidir}/requirements-dev.txt
commands =
nosetests flask_admin/tests --with-coverage --cover-erase --cover-inclusive
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment