Skip to content

Commit

Permalink
add tox
Browse files Browse the repository at this point in the history
  • Loading branch information
seroy authored and Photonios committed Jan 24, 2018
1 parent 612d0dc commit 5ce7edb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Expand Up @@ -29,7 +29,7 @@ build:
- 'pip install coverage --force-reinstall -U'
override:
-
command: python3 -m pytest --cov=psqlextra
command: tox
coverage:
file: '.coverage'
format: 'py-cc'
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -166,7 +166,7 @@ Working with the code

.. code-block:: bash
λ py.test
λ tox
5. Run the benchmarks:

Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
@@ -1,6 +1,5 @@
-r base.txt

Django==2.0.1
psycopg2==2.7.3.2
pylint==1.8.1
pylint-common==0.2.5
Expand All @@ -15,3 +14,4 @@ pytest==3.3.2
pytest-benchmark==3.1.1
pytest-django==3.1.2
pytest-cov==2.5.1
tox==2.9.1
12 changes: 12 additions & 0 deletions tox.ini
@@ -0,0 +1,12 @@
[tox]
envlist = py35-dj{111,20}

[testenv]
deps =
dj111: Django>=1.11,<1.12
dj20: Django>=2.0,<2.1
-rrequirements/test.txt
setenv =
DJANGO_SETTINGS_MODULE=settings
passenv = DATABASE_URL
commands = python -m pytest --cov=psqlextra

0 comments on commit 5ce7edb

Please sign in to comment.