mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
adding php-lint
This commit is contained in:
parent
4d31c2eb62
commit
07217e0ec4
@ -2,8 +2,7 @@ language: php
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
|
||||
# - 5.5
|
||||
- 5.5
|
||||
|
||||
branches:
|
||||
except:
|
||||
@ -27,6 +26,7 @@ before_install:
|
||||
# - sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
|
||||
|
||||
script:
|
||||
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
|
||||
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests
|
||||
|
||||
#&& make javascript-tests
|
||||
|
25
build.xml
Normal file
25
build.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<project name="owncloud-mail" 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="vendor/**/*" />
|
||||
</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>
|
Loading…
x
Reference in New Issue
Block a user