-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
makefile
31 lines (21 loc) · 933 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
29
30
31
.PHONY: test setup mammoth-docx-converter/mammoth-editor.js docker-wordpress
setup: mammoth-docx-converter/mammoth-editor.js mammoth-docx-converter/readme.txt
mammoth-docx-converter/mammoth-editor.js:
cd js; npm install
js/node_modules/.bin/browserify js/mammoth-editor.js > $@
mammoth-docx-converter/readme.txt: readme.txt
cp readme.txt $@
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/pytest tests/tests.py
docker-wordpress:
docker build docker -t mammoth-wordpress-plugin
start-mysql:
tests/_virtualenv/bin/python -m tests.start_mysql
start-wordpress:
tests/_virtualenv/bin/python -m tests.start_wordpress
.PHONY: examples/options-plugin/mammoth-options.zip
examples/options-plugin/mammoth-options.zip:
cd examples/options-plugin; zip -r mammoth-options.zip mammoth-options