forked from py-sherlock/sherlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 849 Bytes
/
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
# Sherlock Makefile
# ~~~~~~~~~~~~~~~~~
#
# Shortcuts for various tasks.
documentation:
@(cd docs; make html)
test:
docker-compose -f docker-compose.dev.yml run sherlock
build:
docker-compose -f docker-compose.dev.yml build sherlock
up:
docker-compose -f docker-compose.dev.yml up -d etcd memcached redis
@echo "Run the following command to start a Python shell with sherlock imported: 'make run_sherlock'"
run_sherlock: up
docker-compose -f docker-compose.dev.yml run --entrypoint ipython sherlock
down:
docker-compose -f docker-compose.dev.yml down
test:
docker-compose -f docker-compose.dev.yml run sherlock
doctest:
@(cd docs/source; sphinx-build -b doctest . _build/doctest)
readme:
python -c 'import sherlock; print sherlock.__doc__' | sed "s/:mod:\`sherlock\`/Sherlock/g" | sed "s/:.*:\`\(.*\)\`/\`\`\1\`\`/g" > README.rst