Published on 2008-05-25 11:43:05

Installing Xinc

The easiest way to install Xinc is using PEAR :

    pear channel-discover pear.xinc.eu
    pear install VersionControl_SVN-alpha
    pear install --alldeps xinc/Xinc-beta

Finally you need to run the post-installation script :

    pear run-scripts xinc/Xinc

Configuration scripts for Xinc

Once we have Xinc installed on our server, we can start creating the configuration file config.xml. First we create a project with the settings below :

    Name : XincProject
    svn Repository : svn://svn.sample/trunk
    project path : /var/xinc/projects/Xincproject

Then create /etc/xinc/conf.d/XincProject.xml :


    <?xml version="1.0"?>

    <xinc engine="Sunrise">
    <project name="XincProject">
    <property name="dir" value="${projectdir}/${project.name}" />
    <schedule interval="240" />
    <modificationset>
    <svn directory="${dir}" update="true" />
    </modificationset>
    <builders>
    <phingbuilder buildfile="${dir}/build.xml" />
    </builders>
    <publishers>
    <onfailure>
    <email to="you@email.com" subject="Build failed"
    message="Build of project failed" />
    </onfailure>
    <onsuccess>
    <email to="you@email.com" subject="Build success"
    message="Build of project was successful" />
    </onsuccess>
    </publishers>
    </project>
    </xinc>

Now you are ready to start xinc deamon from :

    /etc/init.d/xinc start

To test xinc simply make any change in your repository and commit. You should receive the first email within minutes concerning build success or failure.

More details on configurations files and xinc usage could be found at http://code.google.com/p/xinc/, documentation is available here : http://www.xinc.eu/api/documentation/get/file/xinc/latest-successful/Enduser/index.html

Previous Page


Related Entries

Member of the PHP Magazine Network, Copyright (C) 2005-2009 phpmagazine.net All Rights Reserved