lbry-sdk/Makefile

31 lines
739 B
Makefile
Raw Normal View History

2021-04-20 15:41:09 -04:00
.PHONY: install tools lint test test-unit test-unit-coverage test-integration idea
2019-12-07 23:38:54 -05:00
2019-06-20 15:26:54 -04:00
install:
pip install -e .
2019-12-07 23:38:54 -05:00
tools:
2020-04-27 10:18:39 -04:00
pip install mypy==0.701 pylint==2.4.4
2019-06-21 11:39:35 -04:00
pip install coverage astroid pylint
2019-06-20 15:26:54 -04:00
lint:
pylint --rcfile=setup.cfg lbry
#mypy --ignore-missing-imports lbry
2021-04-20 15:41:09 -04:00
test: test-unit test-integration
test-unit:
python -m unittest discover tests.unit
test-unit-coverage:
coverage run -p --source=lbry -m unittest discover -vv tests.unit
test-integration:
tox
2019-06-26 03:54:54 -03:00
idea:
mkdir -p .idea
cp -r scripts/idea/* .idea
2021-05-12 05:27:04 -03:00
elastic-docker:
docker run -d -v lbryhub:/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 -e"ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.12.1