Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (32 sloc) 1.506 kB
run: compile_ext
PYTHONPATH=.:$$PYTHONPATH python thumbor/server.py -l debug
compile_ext:
python setup.py build_ext -i
f ?= "vows/"
test pyvows: compile_ext redis mongo
PYTHONPATH=.:$$PYTHONPATH pyvows -vv --profile --cover --cover_package=thumbor --cover_threshold=90 $f
PYTHONPATH=.:$$PYTHONPATH 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) redis mongo
PYTHONPATH=.:$$PYTHONPATH pyvows -vvv --profile --cover --cover_package=thumbor --cover_threshold=90 vows/
PYTHONPATH=.:$$PYTHONPATH 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
Jump to Line
Something went wrong with that request. Please try again.