forked from deriv-com/python-deriv-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
14 lines (14 loc) · 694 Bytes
/
Makefile
File metadata and controls
14 lines (14 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.PHONY: all setup test doc gh-pages build
all: setup test
setup:
pip3 install pipenv && pipenv install --dev
test:
pipenv run python setup.py pytest
doc:
pipenv run pdoc deriv_api --force --html -o docs/html --template-dir docs/templates
build:
pip3 install build && python3 -m build
coverage:
pipenv run coverage run --source deriv_api -m pytest && pipenv run coverage report -m
gh-pages:
pipenv run pdoc deriv_api --force --html -o /tmp/python-deriv-api-docs --template-dir docs/templates && git add -A . && git stash && git checkout gh-pages && cp -r /tmp/python-deriv-api-docs/deriv_api/* . && git add -A . && git commit -m 'Update docs' && git push origin gh-pages && git checkout -