-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·43 lines (30 loc) · 1.73 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
<?xml version="1.0"?>
<project name="Symfony 2 Base Project" default="help" basedir=".">
<target name="help" description="Display help">
<echo>
###################### PARAMETERS ######################################
-Denv= - set environment. Default value is "dev".
-Ddebug= - display test result (phpcs and phpmd) on the screen.
instead of write to file. Default value is "true".
-Dtarget= - read configuration from /app/config/parameters.{target}.ini
file.
-Dbundle= - bundle name for behat tests (frontend, backend).
###################### SYMFONY #########################################
build.db - build database (drop, create, load fixtures)
for given -Denv= environment.
cc - clear all cache file, dump all assets.
composer - execute composer.phar (update vendor directory).
build - build local project (composer, clear cache, build.db)
deploy - deploy project into production server for given -Dtarget=
parameter.
###################### TESTING #########################################
phpunit - execute phpunit tests with code coverage report.
behat - execute E2E (selenium) bahat tests for given -Dbundle=
parameter. Default bundle="".
###################### CODING STANDARDS ################################
phpcs - run PHP Code Sniffer to check conding standards.
phpmd - execute PHPMD checkstyle reports.
</echo>
</target>
<import file="cms/build.xml" />
</project>