generated from MilesChou/composer-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (32 loc) · 943 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f
INSTALL_PATH := /usr/local/bin/schemarkdown
.PHONY: all clean clean-all check test coverage container bump sqlite examples
# ---------------------------------------------------------------------
all: clean test schemarkdown.phar
clean:
rm -rf ./build
rm -f schemarkdown.phar
clean-all: clean
rm -rf ./vendor
rm -rf ./composer.lock
check:
php vendor/bin/phpcs
test: clean check
phpdbg -qrr vendor/bin/phpunit
coverage: test
@if [ "`uname`" = "Darwin" ]; then open build/coverage/index.html; fi
container:
@docker-compose down -v
@docker-compose up -d
@docker-compose logs -f
bump:
@./bin/bump-version ${VERSION}
schemarkdown.phar: bump
@echo ">>> Building phar ..."
@box compile
sqlite:
@sqlite3 tests/Fixtures/sqlite.db < tests/Fixtures/sqlite.sql
examples:
php bin/schemarkdown.php --config-file=tests/Fixtures/database.php --output-dir=examples
install:
mv schemarkdown.phar ${INSTALL_PATH}