Skip to content
Permalink
Browse files

Add Makefile for tests, build, clean, docs

Simplifies some common jobs, like creating the docs from the root
directory.
The clean target could actually remove more things, like for example
doing "clean" on the docs as well.

The release target is not very usefull as it is, as it just opens the
__init__ file in vim.
  • Loading branch information...
Alexandre Chabot-Leclerc
Alexandre Chabot-Leclerc committed Aug 11, 2014
1 parent 969ed65 commit a111f973f18d36ee8c2ac50b64f64c8f5d5f652e
Showing with 24 additions and 0 deletions.
  1. +24 −0 Makefile
@@ -0,0 +1,24 @@
.PHONY: docs release clean build html

clean:
rm -rf ${HOME}/pambox_test_env htmlcov

build: clean
export PATH=~/miniconda/bin:${PATH}
conda create -p ${HOME}/pambox_test_env --yes --file requirements.txt pip \
&& source activate pambox_test_env \
&& python setup.py install

test: clean build
export PATH=~/miniconda/bin:${PATH}
source activate pambox_test_env \
&& conda install --yes --file testing_requirements.txt \
&& coverage run --source=pambox setup.py test \
&& coverage html \
&& coverage report

docs: html
cd docs; make html

release: test docs
vim pambox/__init__.py

0 comments on commit a111f97

Please sign in to comment.
You can’t perform that action at this time.