Makefile 1.01 KB
Newer Older
1 2 3 4
VERBOSITY=
# VERBOSITY=-v
# VERBOSITY=-vv
# VERBOSITY=-vvv
5 6

run-test:
7
	python -m biseau scripts/example.lp scripts/black_theme.json -o out/out.png $(VERBOSITY)
8 9 10 11
run-fca-test:
	python -m biseau -c ./configs/concept-lattice.json -o out/concept-lattice.png $(VERBOSITY)
run-einstein-test:
	python -m biseau -c ./configs/einstein-riddle.json -o out/einstein-riddle.png $(VERBOSITY)
12 13 14 15
run-config-test:
	python -m biseau -c ./configs/simple.json $(VERBOSITY)
	python -m biseau -c ./configs/concept-lattice.json -o out/concept-lattice.png $(VERBOSITY)
	xdg-open out/concept-lattice.png
16

17 18 19
run-gif-test:
	python -m biseau examples/path-to-gif.lp --dotfile "out/todel{}.dot" --outfile out/out.gif --gif-duration 1000 $(VERBOSITY)

20 21
t: test
test:
Lucas Bourneuf's avatar
Lucas Bourneuf committed
22
	python -m pytest biseau test -vv --ignore=venv --doctest-module
23 24 25 26 27 28 29

fullrelease:
	fullrelease
install_deps:
	python -c "import configparser; c = configparser.ConfigParser(); c.read('setup.cfg'); print(c['options']['install_requires'])" | xargs pip install -U
install:
	python setup.py install
Lucas Bourneuf's avatar
Lucas Bourneuf committed
30 31

.PHONY: t test