-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
124 lines (102 loc) · 5.17 KB
/
build.xml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="UTF-8"?>
<project default="help">
<import file="phing/composer.xml" />
<import file="phing/deptrac.xml" />
<import file="phing/phpunit.xml" />
<import file="phing/symfony.xml" />
<!--
Override the default values here:
<property name="phpunit.bin-directory" value="vendor/bin" />
<property name="phpunit.configuration-directory" value="tests" />
<property name="phpunit.install-target" value="valid-target.who-installs-the-dependencies" />
<property name="phpunit.clear-cache-target" value="valid-target.who-clears-the-cache" />
<property name="phpunit.prepare-data-target" value="valid-target.who-prepares-the-data" />
<property name="symfony.bin-directory" value="bin" />
-->
<target name="help">
<echo level="warning">Available tasks listed below:
</echo>
<echo>Phing Launcher
help.more ....................... provides more help on the tasks groups,
get-the-classics (gtc) .......... getting the classics configuration,
self-update (su) ................ self update this script.
</echo>
<echo>Composer
composer.update ................. updates the project dependencies with Composer,
composer.install ................ installs the project dependencies with Composer.
</echo>
<echo>PHPUnit
phpunit.run ..................... run the PHPUnit tests (for Continuous Integration).
</echo>
<echo>Symfony
symfony.clear-cache ............. clears the application cache for a given environment,
symfony.install-assets .......... installs bundle assets into a given directory,
symfony.install-assets-symlink .. same as install-assets with symlink instead of a copy,
symfony.search-environments ..... search all the available symfony environments.
</echo>
<echo>Deptrac
deptrac.analyze ................. analyze the source.
</echo>
<echo level="warning">Tips:
</echo>
<echo>Phing
./phing.sh my.command -logger phing.listener.DefaultLogger .. disable colors,
./phing.sh my.command -Dmy.parameter="my.value" ............. add a parameter.
</echo>
<echo>Composer
install or update without asking for authentication with the environment variable called COMPOSER_GITHUB_OAUTH_TOKEN
</echo>
</target>
<target name="help.more">
<phingcall target="help.phing-launcher" />
<phingcall target="help.composer" />
<phingcall target="help.phpunit" />
<phingcall target="help.symfony" />
</target>
<target name="help.phing-launcher" hidden="true">
<echo>Phing Launcher
help.more ....................... provides more help on the tasks groups,
get-the-classics (gtc) .......... getting the classics configuration,
self-update (su) ................ self update this script.
</echo>
</target>
<target name="help.composer" hidden="true">
<echo>Composer
composer.update ................. updates the project dependencies with Composer,
composer.install ................ installs the project dependencies with Composer.
</echo>
<echo>Optionals parameters
[composer.parameters] ........... some parameters to add on the command (default: "")
[composer.directory] ............ run in a specific directory (default: .)
</echo>
<echo>Tips
install or update without asking for authentication with the environment variable called COMPOSER_GITHUB_OAUTH_TOKEN
</echo>
<echo level="warning">Example of use
./phing.sh composer.install -Dcomposer.parameters="--no-dev --no-scripts"</echo>
</target>
<target name="help.phpunit" hidden="true">
<echo>PHPUnit
phpunit.run ..................... run the PHPUnit tests (for Continuous Integration).
</echo>
<echo>Optionals parameters
[phpunit.parameters] ............ some parameters to add on the command (default: "")
</echo>
<echo level="warning">Example of use
./phing.sh phpunit.run -Dphpunit.parameters="--testsuite project"</echo>
</target>
<target name="help.symfony" hidden="true">
<echo>Symfony
symfony.clear-cache ............. clears the application cache for a given environment,
symfony.install-assets .......... installs bundle assets into a given directory,
symfony.install-assets-symlink .. same as install-assets with symlink instead of a copy,
symfony.search-environments ..... search all the available symfony environments.
</echo>
<echo>Optionals parameters
[symfony.environment] ........... the environment name (default: "dev")
[symfony.parameters] ............ some parameters to add on the command (default: "")
</echo>
<echo level="warning">Example of use
./phing.sh symfony.clear-cache -Dsymfony.environment="prod" -Dsymfony.parameters="--no-warmup"</echo>
</target>
</project>