Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 64 lines (46 sloc) 1.991 kB
0fe28e7 @cezarsa Building C extensions before running.
cezarsa authored
1 run: compile_ext
fbc2486 @heynemann Changed how we install python dependencies for development.
heynemann authored
2 @thumbor -l debug
3
4 setup:
5 @pip install -e .[tests]
2a570b7 @heynemann Thumbor support for gif and animated gif images.
heynemann authored
6 @echo
7 @echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
8 @echo ">>>>>>>>>>>>>>> MAKE SURE GIFSICLE IS INSTALLED IF RUNNING TESTS <<<<<<<<<<<<<<"
9 @echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
10 @echo
7c03ae1 Working
Fábio Miranda Costa authored
11
0fe28e7 @cezarsa Building C extensions before running.
cezarsa authored
12 compile_ext:
fbc2486 @heynemann Changed how we install python dependencies for development.
heynemann authored
13 @python setup.py build_ext -i
0fe28e7 @cezarsa Building C extensions before running.
cezarsa authored
14
ce269e8 @fabiomcosta making it possible to pass the vow path to make test, just do `make t…
fabiomcosta authored
15 f ?= "vows/"
0172e89 @heynemann Fix makefile
heynemann authored
16 test pyvows: compile_ext redis mongo
fbc2486 @heynemann Changed how we install python dependencies for development.
heynemann authored
17 @pyvows -vv --profile --cover --cover-package=thumbor --cover-threshold=90 $f
f282467 @cezarsa New structure for integration tests, making testing external engines …
cezarsa authored
18 @nosetests -sv thumbor/integration_tests/
d626a7b @wichert Try to debug the makefile.
wichert authored
19 $(MAKE) kill_mongo kill_redis
b62e111 @heynemann Merge
heynemann authored
20
d626a7b @wichert Try to debug the makefile.
wichert authored
21 ci_test: compile_ext
acb6854 @heynemann Makefile
heynemann authored
22 @echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
23 @echo "TORNADO IS `python -c 'import tornado; import inspect; print(inspect.getfile(tornado))'`"
24 @echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
b58fa2e @guilhermef Travis running in parallel
guilhermef authored
25 @if [ -z "$$INTEGRATION_TEST" ]; then $(MAKE) pyvows_run; else $(MAKE) integration_run; fi
26
27
28 pyvows_run:
fbc2486 @heynemann Changed how we install python dependencies for development.
heynemann authored
29 @pyvows -vvv --profile --cover --cover-package=thumbor --cover-threshold=90 vows/
b58fa2e @guilhermef Travis running in parallel
guilhermef authored
30
31 integration_run:
f282467 @cezarsa New structure for integration tests, making testing external engines …
cezarsa authored
32 @nosetests -sv thumbor/integration_tests/
8f8084a @cezarsa Adding trevis-ci config file
cezarsa authored
33
b58fa2e @guilhermef Travis running in parallel
guilhermef authored
34
0b5317d @heynemann Mysql storage done and tested. Fixes #35
heynemann authored
35 mysql_test: pretest
d626a7b @wichert Try to debug the makefile.
wichert authored
36 PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests/test_mysql_storage.py
2b76c14 @heynemann Mongo storage preliminary tests
heynemann authored
37
9be2f5c @heynemann Refactored makefile
heynemann authored
38 kill_mongo:
8377abd @heynemann Mongo Storage vows fixed
heynemann authored
39 @ps aux | awk '(/mongod/ && $$0 !~ /awk/){ system("kill -9 "$$2) }'
9be2f5c @heynemann Refactored makefile
heynemann authored
40
41 mongo: kill_mongo
8377abd @heynemann Mongo Storage vows fixed
heynemann authored
42 @rm -rf /tmp/thumbor/mongodata && mkdir -p /tmp/thumbor/mongodata
d61094a @marcelometal Tests: Added --smallfiles for MongoDB
marcelometal authored
43 @mongod --dbpath /tmp/thumbor/mongodata --logpath /tmp/thumbor/mongolog --port 7777 --quiet --fork --smallfiles
68ff6cc @guilhermef Waiting for mongo
guilhermef authored
44 @mongo --nodb mongo_check_start.js
d1ac79e @heynemann Redis storage vows
heynemann authored
45
9be2f5c @heynemann Refactored makefile
heynemann authored
46 kill_redis:
a8e2c42 @heynemann Partial support to using WebP (#140). Added support for "format" filter.
heynemann authored
47 @-redis-cli -p 6668 -a hey_you shutdown
9be2f5c @heynemann Refactored makefile
heynemann authored
48
49 redis: kill_redis
8377abd @heynemann Mongo Storage vows fixed
heynemann authored
50 @redis-server redis.conf ; sleep 1
a8e2c42 @heynemann Partial support to using WebP (#140). Added support for "format" filter.
heynemann authored
51 @redis-cli -p 6668 -a hey_you info
8a50bfb @heynemann Code reformatting
heynemann authored
52
53 flake:
54 @flake8 . --ignore=W801,E501
bcb3c41 @ricardodani Wiki documentation ported to read the docs (sphinx)
ricardodani authored
55
56 setup_docs:
57 pip install -r docs/requirements.txt
58
59 build_docs:
60 cd docs && make html
61
62 docs: setup_docs build_docs
63 python -mwebbrowser file:///`pwd`/docs/_build/html/index.html
Something went wrong with that request. Please try again.