Skip to content

Commit

Permalink
Testing on Django 1.9 stable and reporting on the test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlavin committed Jan 24, 2016
1 parent 9ab1632 commit 694c929
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 16 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -11,10 +11,13 @@ env:
- TOXENV=py27-django19,py34-django19

install:
- pip install tox pip -U
- pip install tox pip wheel codecov -U

script:
- tox
- tox

after_success:
- codecov -e TOX_ENV

branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
@@ -1,4 +1,4 @@
Copyright (c) 2010-2015, Mark Lavin
Copyright (c) 2010-2016, Mark Lavin
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Expand Up @@ -6,6 +6,9 @@ Tools and widgets for using/creating auto-complete selection widgets using Djang
.. image:: https://travis-ci.org/mlavin/django-selectable.svg?branch=master
:target: https://travis-ci.org/mlavin/django-selectable

.. image:: https://codecov.io/github/mlavin/django-selectable/coverage.svg?branch=master
:target: https://codecov.io/github/mlavin/django-selectable?branch=master


Features
-----------------------------------
Expand Down
9 changes: 9 additions & 0 deletions setup.cfg
@@ -1,2 +1,11 @@
[coverage:run]
branch = true
omit = */tests/*, example/*, .tox/*, setup.py, runtests.py
source = .

[coverage:report]
show_missing = true


[bdist_wheel]
universal = 1
11 changes: 6 additions & 5 deletions setup.py
Expand Up @@ -23,20 +23,21 @@ def read_file(filename):
license='BSD',
description=' '.join(__import__('selectable').__doc__.splitlines()).strip(),
classifiers=[
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Framework :: Django',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
long_description=read_file('README.rst'),
test_suite="runtests.runtests",
tests_require=['mock', ],
zip_safe=False, # because we're including media that Django needs
zip_safe=False, # because we're including media that Django needs
)
15 changes: 7 additions & 8 deletions tox.ini
@@ -1,25 +1,24 @@
[tox]
downloadcache = {toxworkdir}/_download/
envlist = py{27,33}-django{17,18},py{27,34}-django{19},docs
envlist = py{27,33}-django{17,18},py{27,34,35}-django{19},docs

[testenv]
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
deps =
coverage>=4.0,<4.1
django17: Django>=1.7,<1.8
django18: Django>=1.8,<1.9
django19: Django
django19: Django>=1.9,<1.10
py27: mock
pip_pre:
django19: True
commands = {envpython} runtests.py
commands = coverage run runtests.py

[testenv:docs]
basepython = python2.7
basepython = python3.4
deps =
Sphinx
Django>=1.7
Django
commands =
{envbindir}/sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html

0 comments on commit 694c929

Please sign in to comment.