-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.xml
32 lines (26 loc) · 1.31 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="flagception/database-activator" default="build">
<autoloader autoloaderpath="vendor/autoload.php"/>
<target name="php-cs" description="PHP CodeSniffer">
<exec command="./vendor/bin/phpcs
--config-set show_progress 1
--config-set show_warnings 1
--config-set ignore_warnings_on_exit 0
--config-set ignore_errors_on_exit 0
--report=checkstyle
--standard=./build/phpcs.xml
--extensions=php
--colors -p
src/**/*.php"
logoutput="true" />
</target>
<target name="php-unit" description="Execute php unit tests">
<exec command="./vendor/bin/phpunit --coverage-text -c ./build/phpunit.xml" checkreturn="true" logoutput="true"/>
</target>
<target name="analyze" description="Analyze source code" depends="php-cs" />
<target name="composer-prod" description="Composer dependencies for production">
<exec command="composer install --no-dev -o -n --prefer-dist" checkreturn="true" logoutput="true" />
</target>
<target name="test" description="Execute tests" depends="php-unit" />
<target name="build" depends="analyze,test" />
</project>