mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-15 04:34:16 +00:00
71a2a3ec0e
ffb168675 Option to run tests in parallel (#271) 062eaf15d another hot match -- assure hit policy is correctly passed through. c79ee8407 Quick patch the DMN hit policy to fix a dump mistake. 36dd1b23a Fix ResourceWarning: unclosed file BpmnParser.py:60 (#270) bba7ddf54 Merge pull request #268 from sartography/feature/multiple-event-definition 8cf770985 remove unused import 9d31e035e make multiple throw events work with start events 890c4b921 add throw support for multiple events c1fc55660 add support for catching parallel multiple event definitions 511830b67 add event based gateway 56bd858dc add event type for multiple events git-subtree-dir: SpiffWorkflow git-subtree-split: ffb1686757f944065580dd2db8def73d6c1f0134
97 lines
2.5 KiB
Makefile
97 lines
2.5 KiB
Makefile
NAME=SpiffWorkflow
|
|
VERSION=`python setup.py --version`
|
|
PREFIX=/usr/local/
|
|
BIN_DIR=$(PREFIX)/bin
|
|
SITE_DIR=$(PREFIX)`python -c "import sys; from distutils.sysconfig import get_python_lib; print get_python_lib()[len(sys.prefix):]"`
|
|
|
|
###################################################################
|
|
# Standard targets.
|
|
###################################################################
|
|
.PHONY : clean
|
|
clean:
|
|
find . -name "*.pyc" -o -name "*.pyo" | xargs -rn1 rm -f
|
|
find . -name "*.egg-info" | xargs -rn1 rm -r
|
|
rm -Rf build
|
|
cd doc; make clean
|
|
|
|
.PHONY : dist-clean
|
|
dist-clean: clean
|
|
rm -Rf dist
|
|
|
|
.PHONY : doc
|
|
doc:
|
|
cd doc; make
|
|
|
|
install:
|
|
mkdir -p $(SITE_DIR)
|
|
./version.sh
|
|
export PYTHONPATH=$(SITE_DIR):$(PYTHONPATH); \
|
|
python setup.py install --prefix $(PREFIX) \
|
|
--install-scripts $(BIN_DIR) \
|
|
--install-lib $(SITE_DIR)
|
|
./version.sh --reset
|
|
|
|
uninstall:
|
|
# Sorry, Python's distutils support no such action yet.
|
|
|
|
.PHONY : tests
|
|
tests:
|
|
python -m unittest discover -vs tests/SpiffWorkflow -p \*Test.py -t .
|
|
|
|
.PHONY : tests-par
|
|
tests-par:
|
|
@if ! command -v unittest-parallel >/dev/null 2>&1; then \
|
|
echo "unittest-parallel not found. Please install it with:"; \
|
|
echo " pip install unittest-parallel"; \
|
|
exit 1; \
|
|
fi
|
|
unittest-parallel --module-fixtures -vs tests/SpiffWorkflow -p \*Test.py -t .
|
|
|
|
.PHONY : tests-cov
|
|
tests-cov:
|
|
cd tests/$(NAME)
|
|
coverage run --source=$(NAME) -m unittest discover -v . "*Test.py"
|
|
|
|
.PHONY : tests-ind
|
|
tests-ind:
|
|
cd tests/$(NAME)
|
|
@PYTHONPATH=../.. find . -name "*Test.py" -printf '%p' -exec python -m unittest {} \;
|
|
|
|
.PHONY : tests-timing
|
|
tests-timing:
|
|
@make tests-ind 2>&1 | ./scripts/test_times.py
|
|
|
|
###################################################################
|
|
# Package builders.
|
|
###################################################################
|
|
targz: clean
|
|
./version.sh
|
|
python setup.py sdist --formats gztar
|
|
./version.sh --reset
|
|
|
|
tarbz: clean
|
|
./version.sh
|
|
python setup.py sdist --formats bztar
|
|
./version.sh --reset
|
|
|
|
wheel: clean
|
|
./version.sh
|
|
python setup.py bdist_wheel --universal
|
|
./version.sh --reset
|
|
|
|
deb: clean
|
|
./version.sh
|
|
debuild -S -sa
|
|
cd ..; sudo pbuilder build $(NAME)_$(VERSION)-0ubuntu1.dsc; cd -
|
|
./version.sh --reset
|
|
|
|
dist: targz tarbz wheel
|
|
|
|
###################################################################
|
|
# Publishers.
|
|
###################################################################
|
|
dist-publish:
|
|
./version.sh
|
|
python setup.py bdist_wheel --universal upload
|
|
./version.sh --reset
|