add configuration.xml
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
This commit is contained in:
@@ -45,7 +45,7 @@ script:
|
||||
|
||||
# Run phpunit tests
|
||||
- cd tests
|
||||
- phpunit
|
||||
- phpunit --configuration configuration.xml
|
||||
|
||||
# Create coverage report
|
||||
- sh -c "if [ '$PHP_COVERAGE' != 'FALSE' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
|
||||
|
||||
25
tests/configuration.xml
Normal file
25
tests/configuration.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<project name="user_external" basedir="." default="test">
|
||||
|
||||
<property file="build.properties"/>
|
||||
|
||||
<!-- test - Tests if the code syntax is correct and executes phpunit tests -->
|
||||
<target name="test">
|
||||
<apply executable="php" failonerror="true">
|
||||
<arg value="-l" />
|
||||
<fileset dir=".">
|
||||
<include name="**/*.php" />
|
||||
<exclude name="**/l10n/**" />
|
||||
</fileset>
|
||||
</apply>
|
||||
|
||||
<!--<exec executable="phpunit" failonerror="true">-->
|
||||
<!--<arg value="-c" />-->
|
||||
<!--<arg path="${build.src.dir}/app/"/>-->
|
||||
<!--<arg value="- -log-junit" />-->
|
||||
<!--<arg path="${report.dir}/phpunit.xml"/>-->
|
||||
<!--<arg value="- -coverage-clover" />-->
|
||||
<!--<arg path=" ${report.dir}/clover.xml"/>-->
|
||||
<!--</exec>-->
|
||||
</target>
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user