-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
92 lines (78 loc) · 3.86 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# JBZoo Toolbox - Composer-Graph.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/Composer-Graph
#
.PHONY: build
ifneq (, $(wildcard ./vendor/jbzoo/codestyle/src/init.Makefile))
include ./vendor/jbzoo/codestyle/src/init.Makefile
endif
build: ##@Project Install all 3rd party dependencies
$(call title,"Install/Update all 3rd party dependencies")
@composer install --optimize-autoloader --no-progress
@make build-phar
update: ##@Project Install/Update all 3rd party dependencies
$(call title,"Install/Update all 3rd party dependencies")
@echo "Composer flags: $(JBZOO_COMPOSER_UPDATE_FLAGS)"
@composer update $(JBZOO_COMPOSER_UPDATE_FLAGS)
build-docker: ##@Project Building Docker Image
$(call title,"Building Docker Image")
@docker build -t jbzoo-composer-graph .
test-all: ##@Project Run all project tests at once
@make test
@make codestyle
prepare-examples:
@composer install --working-dir="`pwd`/tests/fixtures/testJBZooToolbox" --no-dev
@make prepare-one-example OUTPUT="tp" TEST_PATH="`pwd`/tests/fixtures/testJBZooToolbox"
@make prepare-one-example OUTPUT="self" TEST_PATH="`pwd`"
prepare-one-example:
$(call title,"Build composer graph in different modes")
@echo "TEST_PATH=$(TEST_PATH)"
@echo "OUTPUT=$(OUTPUT)"
@php `pwd`/composer-graph \
--root="$(TEST_PATH)" \
--output="$(PATH_BUILD)/$(OUTPUT)-minimal.html" \
-vvv --profile
@php `pwd`/composer-graph \
--root="$(TEST_PATH)" \
--output="$(PATH_BUILD)/$(OUTPUT)-extensions.html" \
--show-ext \
-vvv --profile
@php `pwd`/composer-graph \
--root="$(TEST_PATH)" \
--output="$(PATH_BUILD)/$(OUTPUT)-versions.html" \
--show-link-versions \
--show-package-versions \
-vvv --profile
@php `pwd`/composer-graph \
--root="$(TEST_PATH)" \
--output="$(PATH_BUILD)/$(OUTPUT)-suggests.html" \
--show-suggests \
-vvv --profile
@php `pwd`/composer-graph \
--root="$(TEST_PATH)" \
--output="$(PATH_BUILD)/$(OUTPUT)-suggests-versions.html" \
--show-link-versions \
--show-package-versions \
--show-suggests \
-vvv --profile
@php `pwd`/composer-graph \
--root="$(TEST_PATH)" \
--output="$(PATH_BUILD)/$(OUTPUT)-dev.html" \
--show-dev \
-vvv --profile
@php `pwd`/composer-graph \
--root="$(TEST_PATH)" \
--output="$(PATH_BUILD)/$(OUTPUT)-full-without-php.html" \
--show-ext \
--show-dev \
--show-suggests \
--show-link-versions \
--show-package-versions \
-vvv --profile