mirror of
https://github.com/wassname/options_backtester.git
synced 2026-06-27 18:05:27 +08:00
42 lines
826 B
Makefile
42 lines
826 B
Makefile
.PHONY: image init env testdata test_backtester test_scraper scrape aggregate backup bench
|
|
|
|
image:
|
|
docker build -t data_scraper -f ./docker/data_scraper/Dockerfile .
|
|
|
|
ops:
|
|
docker-compose -f ./docker/docker-compose.yml up -d
|
|
|
|
stop:
|
|
docker-compose -f ./docker/docker-compose.yml down
|
|
|
|
init:
|
|
pipenv --three && pipenv install
|
|
|
|
env:
|
|
pipenv shell
|
|
|
|
testdata:
|
|
pipenv run python backtester/test/create_test_data.py
|
|
|
|
test_backtester:
|
|
pipenv run python -m pytest -v backtester
|
|
|
|
test_scraper:
|
|
pipenv run python -m unittest discover -s data_scraper
|
|
|
|
scrape:
|
|
ifdef scraper
|
|
pipenv run python -m data_scraper -s $(scraper) -v
|
|
else
|
|
pipenv run python -m data_scraper -v
|
|
endif
|
|
|
|
aggregate:
|
|
pipenv run python -m data_scraper -a
|
|
|
|
backup:
|
|
pipenv run python -m data_scraper -b
|
|
|
|
bench:
|
|
pipenv run python backtester/test/run_benchmark.py
|