-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
clean:
find . | grep -E '(\.pytest_cache|\.coverage|\.cache|__pycache__|\.pyc|\.pyo$\)' | xargs rm -rvf
rm -r build/ dist/ .eggs/ .cache/ *.egg-info/ || echo '1'
build:
docker-compose build
make update-docker
update-docker:
make clean-docker
docker-compose up -d && docker exec -t doppelspeller /bin/sh /doppelspeller/docker-update.sh
clean-docker:
docker-compose up -d && docker exec -t doppelspeller bash -c "cd /doppelspeller/ && make clean"
login:
docker-compose up -d && docker attach doppelspeller
inspect:
docker-compose up -d && docker exec -t doppelspeller bash -c "cd /doppelspeller/ && /usr/local/bin/flake8 doppelspeller/"
test:
docker-compose up -d && docker exec -t doppelspeller bash -c "cd /doppelspeller/ && make clean && /usr/local/bin/py.test"
stage-example-data-set:
docker-compose up -d && docker exec -t doppelspeller doppel-speller -vv stage-example-data-set-on-docker-container
train-model:
make update-docker
docker-compose up -d && docker exec -t doppelspeller doppel-speller -vv train-model
generate-predictions:
make update-docker
docker-compose up -d && docker exec -t doppelspeller doppel-speller -vv generate-predictions
get-predictions-accuracy:
docker-compose up -d && docker exec -t doppelspeller doppel-speller -vv get-predictions-accuracy
closest-search-single-title:
docker-compose up -d && docker exec -t doppelspeller doppel-speller -vv closest-search-single-title --title-to-search="$(title)"