Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
bc98ff73
Commit
bc98ff73
authored
Jan 30, 2017
by
Paul Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tox.ini, use tox with travis
parent
1cc9021c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
5 deletions
+20
-5
.gitignore
.gitignore
+1
-0
.travis.yml
.travis.yml
+4
-4
README.rst
README.rst
+2
-0
requirements-dev.txt
requirements-dev.txt
+0
-1
tox.ini
tox.ini
+13
-0
No files found.
.gitignore
View file @
bc98ff73
...
@@ -26,3 +26,4 @@ examples/appengine/lib
...
@@ -26,3 +26,4 @@ examples/appengine/lib
env
env
*.egg
*.egg
.eggs
.eggs
.tox/
.travis.yml
View file @
bc98ff73
...
@@ -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
README.rst
View file @
bc98ff73
...
@@ -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
---------------
---------------
...
...
requirements-dev.txt
View file @
bc98ff73
Flask>=0.7
Flask>=0.7
wtforms
Flask-SQLAlchemy>=0.15
Flask-SQLAlchemy>=0.15
peewee
peewee
wtf-peewee
wtf-peewee
...
...
tox.ini
0 → 100644
View file @
bc98ff73
[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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment