-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
47 lines (37 loc) · 1.4 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
install:
rm -rf ./src/vendor && docker run --rm --tty --interactive \
--user $(shell id -u):$(shell id -g) \
--volume $(shell pwd):/app \
--volume $${HOME}/.composer:/tmp \
composer install --no-dev
install-dev:
docker run --rm --tty --interactive \
--user $(shell id -u):$(shell id -g) \
--volume $(shell pwd):/app \
--volume $${HOME}/.composer:/tmp \
composer install
update:
docker run --rm --tty --interactive \
--user $(shell id -u):$(shell id -g) \
--volume $(shell pwd):/app \
--volume $${HOME}/.composer:/tmp \
composer update
test: install-dev
docker run --rm --tty --interactive \
--user $(shell id -u):$(shell id -g) \
--volume $(shell pwd):/app \
--volume $${HOME}/.composer:/tmp \
composer test
start: install
docker-compose --project-name wp-linked-data-dev --file=./docker/development.yml up --build -d
plugin-repo:
svn co https://plugins.svn.wordpress.org/wp-linked-data plugin-repo
copy-to-plugin-repo: plugin-repo install
rsync -avh ./src/ ./plugin-repo/trunk/ --delete
add-all-to-plugin-repo: copy-to-plugin-repo
cd ./plugin-repo/trunk ; svn add --force * --auto-props --parents --depth infinity -q
diff-plugin-repo: add-all-to-plugin-repo
cd ./plugin-repo/trunk ; svn diff ; svn stat;
publish-to-plugin-repo: diff-plugin-repo
cd ./plugin-repo/trunk ; svn ci -m "publish to wordpress plugin repo"
.PHONY: install start test copy-to-plugin-repo diff-plugin-repo