Skip to content

Commit

Permalink
Remove run_tests.py, use make *
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitlock committed Aug 22, 2014
1 parent c7099b9 commit bd68725
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ language: python
addons:
postgresql: "9.3"

install: pip install tox coveralls --use-mirrors
install: pip install tox --use-mirrors

before_script:
- psql -U postgres -c 'create database bpzaroundme;'
Expand Down
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. :changelog:
History
-------
=======

0.1.0 (Date TBD)
---------------------
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include requirements.txt requirements.dev.txt requirements.test.txt
include requirements.txt requirements.dev.txt
include .coveragerc .travis.yml Makefile Procfile tox.ini .editorconfig
include LICENSE
include *.rst
Expand Down
13 changes: 13 additions & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Requirements for development and packaging

# flake8 - syntax checking
mccabe==0.2.1
pep8==1.5.7
pyflakes==0.8.1
flake8==2.2.2

# coverage - line and branch coverage
coverage==3.7.1

# nose - improved test runner
nose==1.3.3
django-nose==1.2

# tox - multi-environment testing
tox==1.7.2

Expand Down
14 changes: 0 additions & 14 deletions requirements.test.txt

This file was deleted.

55 changes: 0 additions & 55 deletions run_tests.py

This file was deleted.

10 changes: 7 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
envlist = py26, py27, py33, py34, style, docs, coverage

[testenv]
whitelist_externals = make
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/BPZAround.me
commands = python run_tests.py
commands = make test
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements.test.txt
django-nose

[testenv:style]
deps =
flake8
commands = make lint

[testenv:docs]
Expand All @@ -22,7 +25,8 @@ commands = make html
[testenv:coverage]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements.test.txt
django-nose
coverage
coveralls
commands =
python manage.py test --with-coverage --cover-erase --cover-tests --cover-branches --cover-package=bpz
Expand Down

0 comments on commit bd68725

Please sign in to comment.