Make commands

Check the Makefile below to learn available shorthand commands. If you need to manipulate VisualViper from another process, we suggest you do so through make

docker:
	bin/dev-docker


install:
	python3 -m pip install -q -r requirements.txt
	python3 setup.py develop


run:
	python3 . run


# Shorthand commands for development

dev:
	ENV=dev \
	bash -c 'ptw -c . -- -vv --diff-symbols '


# Shorthand commands for test

test:
	ENV=test \
	bash -c 'pytest . -vv --diff-symbols --cov-report=html:dist/coverage --cov visual_viper'

test-ci: install
	ENV=test \
	bash -c 'pytest . -vv --diff-symbols --junitxml dist/test/junit.xml --cov-report=xml:dist/coverage/coverage.xml --cov-report term-missing --cov visual_viper'


# Shorthand commands for documentation

doc:
	sphinx-build docs dist/docs/html

dev-doc:
	ptw --runner 'sphinx-build docs dist/docs/html' --ext py,rst


# Shorthand commands for pushing

push:
	git add .
	git commit -m "minor push"
	git push