Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 1.193 kB
run:
@PYTHONPATH=.:$$PYTHONPATH python thumbor/server.py -l debug
db:
@mysql -u root -e 'DROP DATABASE IF EXISTS thumbor'
@mysql -u root -e 'CREATE DATABASE IF NOT EXISTS thumbor'
@mysql -u root -e 'CREATE TABLE IF NOT EXISTS images (id int NOT NULL PRIMARY KEY, url VARCHAR(1000) NOT NULL, contents BLOB NOT NULL, security_key VARCHAR(100) NULL, detector_data VARCHAR(2000) NULL, last_update TIMESTAMP);' thumbor
pretest:
@mysql -u root -e 'DROP DATABASE IF EXISTS thumbor_tests'
@mysql -u root -e 'CREATE DATABASE IF NOT EXISTS thumbor_tests'
@mysql -u root -e 'CREATE TABLE IF NOT EXISTS images (id int NOT NULL PRIMARY KEY, url VARCHAR(1000) NOT NULL, contents BLOB NOT NULL, security_key VARCHAR(100) NULL, detector_data VARCHAR(2000) NULL, last_update TIMESTAMP);' thumbor_tests
test: pretest
@PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests
pyvows:
@PYTHONPATH=.:$$PYTHONPATH pyvows --cover --cover_package=thumbor --cover_omit=thumbor/vendor/* --cover_threshold=90 vows/
mysql_test: pretest
@PYTHONPATH=.:$$PYTHONPATH nosetests -v -s --with-coverage --cover-erase --cover-package=thumbor tests/test_mysql_storage.py
Jump to Line
Something went wrong with that request. Please try again.