2021-04-20 21:41:09 +02:00
|
|
|
.PHONY: install tools lint test test-unit test-unit-coverage test-integration idea
|
2019-12-08 05:38:54 +01:00
|
|
|
|
2019-06-20 21:26:54 +02:00
|
|
|
install:
|
2020-01-01 00:57:48 +01:00
|
|
|
pip install -e .
|
2019-12-08 05:38:54 +01:00
|
|
|
|
|
|
|
tools:
|
2021-08-21 04:36:35 +02:00
|
|
|
pip install pylint==2.10.0
|
|
|
|
pip install coverage
|
2019-06-20 21:26:54 +02:00
|
|
|
|
|
|
|
lint:
|
2020-01-01 00:57:48 +01:00
|
|
|
pylint --rcfile=setup.cfg lbry
|
|
|
|
#mypy --ignore-missing-imports lbry
|
2019-06-21 17:26:58 +02:00
|
|
|
|
2021-04-20 21:41:09 +02: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:
|
2020-01-01 00:57:48 +01:00
|
|
|
tox
|
2019-06-26 08:54:54 +02:00
|
|
|
|
2019-06-21 17:26:58 +02:00
|
|
|
idea:
|
|
|
|
mkdir -p .idea
|
2020-01-01 00:57:48 +01:00
|
|
|
cp -r scripts/idea/* .idea
|
2021-05-12 10:27:04 +02: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
|