add configuration.xml

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
This commit is contained in:
Jonas Sulzer
2019-01-08 09:37:02 +01:00
parent c80e574a69
commit f982b27bce
2 changed files with 26 additions and 1 deletions

View File

@@ -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
View 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>