mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
adding php-lint
This commit is contained in:
parent
4d31c2eb62
commit
07217e0ec4
@ -2,8 +2,7 @@ language: php
|
|||||||
php:
|
php:
|
||||||
- 5.3
|
- 5.3
|
||||||
- 5.4
|
- 5.4
|
||||||
|
- 5.5
|
||||||
# - 5.5
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
@ -27,6 +26,7 @@ before_install:
|
|||||||
# - sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
|
# - sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
|
||||||
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests
|
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests
|
||||||
|
|
||||||
#&& make javascript-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