-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile to enable "quickstart" workflow
Nothing too complex, but it's nice to be able to show up in a new project, `make test` and have it "just work". Documented in the readme. Gets rid of test.sh . Since `make test` is a superior replacement, there's no reason to keep it.
- Loading branch information
1 parent
dcdd581
commit e12b892
Showing
3 changed files
with
38 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# control the py version used to install tox | ||
# use like | ||
# NOSE2_PYTHON_VERSION=python3.6 make docs | ||
NOSE2_PYTHON_VERSION?=python | ||
VIRTUALENV=.venv-$(NOSE2_PYTHON_VERSION) | ||
|
||
.PHONY: help docs test clean | ||
|
||
help: | ||
@echo 'Easy setup for local nose2 development' | ||
@echo 'make help Show this help' | ||
@echo 'make docs Build docs' | ||
@echo 'make test Test nose2' | ||
@echo 'make clean Cleanup' | ||
|
||
$(VIRTUALENV)/bin/tox: | ||
virtualenv --python "$(NOSE2_PYTHON_VERSION)" $(VIRTUALENV) | ||
$(VIRTUALENV)/bin/pip install tox==2.9.1 | ||
|
||
test: $(VIRTUALENV)/bin/tox | ||
$(VIRTUALENV)/bin/tox | ||
docs: $(VIRTUALENV)/bin/tox | ||
$(VIRTUALENV)/bin/tox -e docs | ||
|
||
clean: | ||
$(MAKE) -C docs/ clean | ||
rm -rf .venv-* |
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