Skip to content

Commit

Permalink
rewrite tests script as Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jan 2, 2013
1 parent 88e3139 commit d17a4d5
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 48 deletions.
1 change: 1 addition & 0 deletions bobtemplates/ielectric/pyramid/.gitignore
Expand Up @@ -9,3 +9,4 @@
/eggs/
/parts/
/var/
/build/
6 changes: 3 additions & 3 deletions bobtemplates/ielectric/pyramid/.travis.yml.bob
Expand Up @@ -2,13 +2,13 @@ language: python
python:
- 2.6
- 2.7
- pypy
{{% if python3 %}}
- 3.1
- 3.2
- 3.3
{{% endif %}}
- pypy
install:
- python bootstrap.py
- bin/buildout
script:
- ./run_tests.sh
- make test -k
9 changes: 9 additions & 0 deletions bobtemplates/ielectric/pyramid/Makefile.bob
@@ -0,0 +1,9 @@
test: nosetests flake8

nosetests:
@echo "==== Running nosetests ===="
@nosetests

flake8:
@echo "==== Running Flake8 ===="
@flake8 {{{package.dottedname}}} *.py
3 changes: 2 additions & 1 deletion bobtemplates/ielectric/pyramid/docs/conf.py.bob
Expand Up @@ -21,7 +21,8 @@ from datetime import datetime
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
'sphinx.ext.intersphinx', 'sphinx.ext.todo']
'sphinx.ext.intersphinx', 'sphinx.ext.todo',
'sphinx.ext.viewcode']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
21 changes: 0 additions & 21 deletions bobtemplates/ielectric/pyramid/run_tests.sh.bob

This file was deleted.

1 change: 1 addition & 0 deletions bobtemplates/ielectric/python_package/.gitignore
Expand Up @@ -5,3 +5,4 @@
/lib/
/dist/
/include/
/build/
2 changes: 1 addition & 1 deletion bobtemplates/ielectric/python_package/.travis.yml.bob
Expand Up @@ -11,4 +11,4 @@ install:
- python setup.py develop
- easy_install {{{package.name}}}[test]
script:
- ./run_tests.sh
- make test -k
9 changes: 9 additions & 0 deletions bobtemplates/ielectric/python_package/Makefile.bob
@@ -0,0 +1,9 @@
test: nosetests flake8

nosetests:
@echo "==== Running nosetests ===="
@nosetests

flake8:
@echo "==== Running Flake8 ===="
@flake8 {{{package.dottedname}}} *.py
2 changes: 1 addition & 1 deletion bobtemplates/ielectric/python_package/README.rst.bob
Expand Up @@ -26,4 +26,4 @@ RUNNING TESTS
=============

::
$ nosetests
$ make test
21 changes: 0 additions & 21 deletions bobtemplates/ielectric/python_package/run_tests.sh.bob

This file was deleted.

0 comments on commit d17a4d5

Please sign in to comment.