forked from thumbor/thumbor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
21 lines (16 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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