Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/include-six
Conflicts: .travis.yml distarray/client.py distarray/local/denselocalarray.py distarray/odin.py distarray/tests/test_client.py examples/odin_demo.py
- Loading branch information
Showing
45 changed files
with
2,287 additions
and
879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,4 +107,4 @@ dist | |
|
||
# Coverage related files # | ||
########################## | ||
.coverage | ||
.coverage* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,52 @@ | ||
.PHONY: clean setup_cluster test test_travis teardown_cluster | ||
|
||
PYTHON = python | ||
MPIEXEC = mpiexec | ||
COVERAGE = coverage | ||
|
||
develop: | ||
${PYTHON} setup.py develop | ||
.PHONY: develop | ||
|
||
install: | ||
${PYTHON} setup.py install | ||
.PHONY: install | ||
|
||
setup_cluster: | ||
-${PYTHON} distarray/tests/ipcluster.py 'start()' | ||
.PHONY: setup_cluster | ||
|
||
test_client: | ||
${PYTHON} -m unittest discover -v | ||
.PHONY: test_client | ||
|
||
test_client_with_coverage: | ||
${COVERAGE} run -pm unittest discover -v | ||
.PHONY: test_client_with_coverage | ||
|
||
test_engines: | ||
${MPIEXEC} -n 12 ${PYTHON} -m unittest discover -s distarray/local/tests -p 'paralleltest*.py' | ||
.PHONY: test_engines | ||
|
||
test_engines_with_coverage: | ||
${MPIEXEC} -n 12 ${COVERAGE} run -pm unittest discover -s distarray/local/tests -p 'paralleltest*.py' | ||
.PHONY: test_engines_with_coverage | ||
|
||
test: test_client test_engines | ||
.PHONY: test | ||
|
||
test: | ||
${COVERAGE} run -m unittest discover | ||
${MPIEXEC} -n 12 ${PYTHON} -m unittest discover -s distarray/local/tests -p 'paralleltest*.py' | ||
test_with_coverage: test_client_with_coverage test_engines_with_coverage | ||
.PHONY: test_with_coverage | ||
|
||
report: | ||
coverage_report: | ||
${COVERAGE} combine | ||
${COVERAGE} html | ||
.PHONY: coverage_report | ||
|
||
teardown_cluster: | ||
-${PYTHON} distarray/tests/ipcluster.py 'stop()' | ||
.PHONY: teardown_cluster | ||
|
||
clean: | ||
-${PYTHON} setup.py clean --all | ||
-find . \( -iname '*.py[co]' -or -iname '*.so' -or -iname '__pycache__' \) -exec ${RM} -r '{}' + | ||
-${RM} -r build MANIFEST dist distarray.egg-info coverage_report | ||
.PHONY: clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.