forked from keichan34/wpro
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 819 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 819 Bytes
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
help:
# make deps - Install dependencies.
# make builddocs - Convert WordPress the readme.txt into GitHub README.md markdown.
# make installtestenv - Install unit testing environment.
# make test - Run unit tests.
# make clean - Remove build and test junk from filesystem.
#
# Requirements for everything to work:
# * composer - Check out https://getcomposer.org/
# * make
# * php - As command line program
all: deps builddocs
deps:
composer install
builddocs: deps
vendor/bin/wp2md convert < readme.txt > README.md
installtestenv: deps
mysql -e "DROP DATABASE IF EXISTS wprotest;" --user=root --password=""
bin/install-wp-tests.sh wprotest root ""
test:
vendor/bin/phpunit
clean:
rm -Rf vendor composer.lock
.PHONY: help all deps builddocs installtestdev clean