I just set up the 0.8.x branch for continuous integration using Hudson on
my system. You can see the reports at
https://www.integralblue.com/hudson/job/laconica%200.8.x/ It also pings
the #laconica IRC channel when a build finishes (successfully or
otherwise).

I'm running phpdoc, phpcs, and phpunit (with one simple, stupid proof of
concept test) right now. The reports show that either I have phpcs
misconfigured, or laconica is not very PEAR-styled right now. Also, again,
I either have phpdoc misconfigured, or the documentation isn't phpdoc
compliant.

I'm using phing to do the build now. I'm attaching my build.xml - just put
it into your laconica directory, and run the "phing" command, and you
should get the same thing I do. You'll need phing, phpcs, phpdoc, and
phpunit.

I'd like to eventually commit build.xml, so any suggestions/improvements
would be very welcome.

~Craig
<?xml version="1.0" encoding="UTF-8"?>
<project name="laconica" default="main" description="Laconica (pronounced &quot;luh-KAWN-ih-kuh&quot;) is a Free and Open Source microblogging platform">
    <property name="tmp" value="/tmp" />
    <property name="package"  value="${phing.project.name}" override="true" />
    <property name="builddir" value="build" override="true" />
    <property name="srcdir"   value="./src/" override="true" />

    <!-- Main Target -->
    <target name="main" description="main target">

        <!-- Create dirs -->
        <mkdir dir="${builddir}/reports"/>
        <mkdir dir="${builddir}/reports/coverage"/>

        <!-- PHP API Documentation -->
        <phpdoc title="API Documentation"
            destdir="${builddir}/apidocs"
            sourcecode="yes"
            defaultpackagename="Laconica"
            output="HTML:Smarty:PHP">
            <fileset dir=".">
                <include name="*/*.php" />
            </fileset>
        </phpdoc>
        <!-- PHP CodeSniffer -->
        <exec command="phpcs --standard=PEAR --ignore=build/* --report=checkstyle . > ${builddir}/reports/checkstyle.xml" escape="false" />

        <!-- PHPUnit -->
        <exec command="phpunit --log-xml ${builddir}/reports/phpunit.xml --log-pmd ${builddir}/reports/phpunit.pmd.xml --coverage-clover ${builddir}/reports/coverage/clover.xml --coverage-html ${builddir}/reports/coverage/ tests/*.php"/>
    </target>
</project>
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to