forked from mwilliamson/mammoth-wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
28 lines (21 loc) · 840 Bytes
/
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
.PHONY: test setup _wordpress/wordpress/wp-content/plugins/mammoth
setup: _wordpress/wordpress/wp-content/plugins/mammoth mammoth/mammoth.js
_whack/bin/python:
virtualenv _whack
_whack/bin/whack: _whack/bin/python
_whack/bin/pip install whack
_wordpress: _whack/bin/whack
. _whack/bin/activate; \
whack install git+https://github.com/mwilliamson/whack-package-wordpress.git $@ \
-p mysql_database=wp_mammoth \
-p mysql_username=wp_mammoth \
-p mysql_password=password1 \
-p port=54713
_wordpress/wordpress/wp-content/plugins/mammoth: _wordpress
ln -sfT `pwd`/mammoth $@
_wordpress/bin/wp plugin activate mammoth
tests/_virtualenv/bin/python:
virtualenv tests/_virtualenv
test: setup tests/_virtualenv/bin/python
tests/_virtualenv/bin/pip install -r tests/requirements.txt
tests/_virtualenv/bin/nosetests tests