forked from thumbor/thumbor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 1.37 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
41
42
43
44
run: compile_ext
@thumbor -l debug
setup:
@pip install -e .[tests]
compile_ext:
@python setup.py build_ext -i
f ?= "vows/"
test pyvows: compile_ext redis mongo
@pyvows -vv --profile --cover --cover-package=thumbor --cover-threshold=90 $f
@nosetests -sv integration_tests/
$(MAKE) kill_mongo kill_redis
ci_test: compile_ext
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
@echo "TORNADO IS `python -c 'import tornado; import inspect; print(inspect.getfile(tornado))'`"
@echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
$(MAKE) mongo redis
@pyvows -vvv --profile --cover --cover-package=thumbor --cover-threshold=90 vows/
@nosetests -sv integration_tests/
$(MAKE) kill_mongo kill_redis
mysql_test: pretest
PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests/test_mysql_storage.py
kill_mongo:
@ps aux | awk '(/mongod/ && $$0 !~ /awk/){ system("kill -9 "$$2) }'
mongo: kill_mongo
@rm -rf /tmp/thumbor/mongodata && mkdir -p /tmp/thumbor/mongodata
@mongod --dbpath /tmp/thumbor/mongodata --logpath /tmp/thumbor/mongolog --port 7777 --quiet &
@sleep 5
kill_redis:
@-redis-cli -p 6668 -a hey_you shutdown
redis: kill_redis
@redis-server redis.conf ; sleep 1
@redis-cli -p 6668 -a hey_you info
flake:
@flake8 . --ignore=W801,E501