-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from nzlosh/doc_update
Update documentation and improve unit testing
- Loading branch information
Showing
5 changed files
with
317 additions
and
59 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
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,4 +1,30 @@ | ||
test: | ||
pytest test_err-stackstorm.py | ||
flake8 --max-line-length=100 st2.py lib/*.py || true | ||
pep8 --max-line-length=100 st2.py lib/*.py | ||
SHELL=/bin/sh | ||
VENVDIR=/tmp/err-stackstorm-venv | ||
|
||
.PHONY: all | ||
all: setup lint_test unit_test | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf "${VENVDIR}" | ||
|
||
.PHONY: setup | ||
setup: | ||
test -d "${VENVDIR}" || virtualenv -p python3 "${VENVDIR}" | ||
. ${VENVDIR}/bin/activate | ||
${VENVDIR}/bin/pip install errbot flake8 pep8 pytest mock | ||
${VENVDIR}/bin/pip install -r requirements.txt | ||
cd "${VENVDIR}" && "${VENVDIR}/bin/errbot" --init | ||
|
||
.PHONY: activate | ||
activate: | ||
. ${VENVDIR}/bin/activate | ||
|
||
.PHONY: unit_test | ||
unit_test: activate | ||
${VENVDIR}/bin/pytest test_err-stackstorm.py | ||
|
||
.PHONY: lint_test | ||
lint_test: activate | ||
${VENVDIR}/bin/flake8 --max-line-length=100 st2.py lib/*.py || true | ||
${VENVDIR}/bin/pep8 --max-line-length=100 st2.py lib/*.py |
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.