Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2013-06-12 10:50:48 +02:00
commit 2ad76e2c23
2 changed files with 23 additions and 8 deletions

View File

@ -3,5 +3,8 @@ php:
- "5.5"
- "5.4"
- "5.3"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq ant
before_script: ./scripts/generate-mo --quiet
script: phpunit --configuration phpunit.xml.nocoverage
script: ant phpunit-nocoverage lint

View File

@ -4,9 +4,6 @@
<property name="source" value="."/>
<property name="source_comma_sep" value="."/>
<fileset dir="${source}" includes="js/pmd/*.js,js/*.js" id="jsfiles" />
<pathconvert pathsep=" " property="js-list" refid="jsfiles" />
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build/api"/>
<delete dir="${basedir}/build/code-browser"/>
@ -110,10 +107,25 @@
</target>
<target name="jshint" description="Javascript checks">
<exec executable="jshint" output="${basedir}/build/logs/jslint.xml">
<arg line="--config ./.jshintrc --jslint-reporter ${js-list}" />
</exec>
<apply executable="jshint" output="${basedir}/build/logs/jslint.xml" parallel="true">
<arg line="--config ./.jshintrc --jslint-reporter" />
<fileset dir="${basedir}">
<include name="js/pmd/*.js" />
<include name="js/*.js" />
</fileset>
</apply>
</target>
<target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb"/>
<target name="lint" description="Perform syntax check of sourcecode files">
<apply executable="php" failonerror="true">
<arg value="-l" />
<fileset dir="${basedir}">
<include name="**/*.php" />
<modified />
</fileset>
</apply>
</target>
<target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb,lint,jshint"/>
</project>