TeamCity is a Java-based build management and continuous integration server from JetBrains. [http://en.wikipedia.org/wiki/TeamCity]
I put some effort the last few days in this new framework.
Done:
Selenium test suite do not accept a baseurl (or only a part of it) so I have a full path like /Joomla1.5.7/installation/index.php in a selenium test case instead of /installation/index.php in test case and baseurl= http://localhost/Joomla1.5.7)
All cluster operations are in cluster.xml these basic functions are
All Joomla specific operations are in joomla.library.xml
All PHPUnit operation are in phpunit.xml
Settings are in setEnv.xml, in future I will lazy load a file if it exist as environment variable
If you know ANT, the code is quite readable...
Build is scalable
Distributed build management optimize hardware resources utilization by parallelizing product builds within the build agents grid. With build chains support, it is even possible to break down a single build procedure into several parts to run them on different build agents — both in sequence and in parallel — using the same set of sources in all of them.
I want to be able to test my components against many versions of Joomla!
All versions of Joomla! are in subversion as zip files in an own SVN repository
For example:
These repository ${JOOMLAxx_VCS_ROOT} are connected to all build as supplementary VCS root in TeamCity and thus content get checked out as part of the build in the build temporary directory of one agent. ($AGENT_BUILD_DIR)
joomla1.5\trunk
Joomla_1.5.4-Stable-Full_Package.zip
Joomla_1.5.5-Stable-Full_Package.zip
Joomla_1.5.6-Stable-Full_Package.zip
Joomla_1.5.7-Stable-Full_Package.zip
Joomla_1.5.8-Stable-Full_Package.zipSo after the checkout, the file system will look like
($AGENT_BUILD_DIR)\
Joomla_1.5.4-Stable-Full_Package.zip
Joomla_1.5.5-Stable-Full_Package.zip
Joomla_1.5.6-Stable-Full_Package.zip
Joomla_1.5.7-Stable-Full_Package.zip
Joomla_1.5.8-Stable-Full_Package.zip
If you don't want to provide support a a specific version of Joomla! just remove it from the trunk! or add new ones on purpose. That's easy.
Ant tasks/Maven MOJO
Another ant script/task will for each zip,
Remarks:
Your component is typically shared and many developer committed regularly in a different VCS root... For SecurityImages 5.x.y, subversion root may be svn:\\localhost\securityimages5\trunk
This VCS root is also attached to the build and get check out at build time by TeamCity.
if a build.xml is present in {VCS_ROOT}\build.xml then it is executed prior to any further operations, purpose of build.xml is to produce a component binary distribution (zip or tar.gz) that can be then installed to ALL Joomla install in the agent root directory.
if a deploy.xml is present in {VCS_ROOT}\deploy.xml then it is executed, purpose of deploy.xml is to deploy one or many component binary distribution (zip or tar.gz) to ALL Joomla install in the agent root directory.
Why one or many component?
I want to be able to track also component dependencies issues.
Lets say that SecurityImages does not play well with VirtueMart, I may want to test also that combination across Joomla! instances, that's why VirtueMart may have to be deployed with SecurityImages or not.
This articles will be available in my WIKI soon http://wiki.waltercedric.com/index.php?title=ContinuousBuildforJoomla so any reader or developer can participate to the discussion, next step is to implement the above and that will e documented as well :-)
I will commit soon a first draft (alpha) of what is expected to bring continuous build to any Joomla! component (or event to Joomla! core itself ;-))
You are free to join the project, all documentation effort stay at the moment in my WIKI
Tux Droid is a Linux wireless Tux mascot (210mm x 180mm x 140mm - with lowered wings) with a programmable interface, allowing it to announce events by its gestures and by ALSA driven sound. The events are detected by specific gadgets, which are handled by the Tux Gadget Manager. The Tux Droid supports Linux kernel 2.4 or later and needs a 800 MHz CPU and 128 MB RAM. It communicates by infrared to the USB port (1.1 or 2.0) and for media detection it needs an internet connection. The mascot is driven by Atmel AVR RISC microcontrollers. From http://en.wikipedia.org/wiki/Tux_Droid
TeamCity is a Java-based build management and continuous integration server from JetBrains, creators of IntelliJ IDEA and ReSharper.
Read more: Tux Droid Plugin for Jet Brains TeamCity 4.0
Amazon EC2 and Virtual Agents
Take avdantage of cloud computing with TeamCity by putting Build Agents on Amazon EC2. After your Build Agents' AMIs (Amazon Machine Images) are registered, the TeamCity server will account for those virtual machines in its build scheduling and will automatically do a suspend/resume job on them, based on the load and build queue status.
Better Support for Maven
Version 5.0 has many Maven support improvements under the hood. These include the creation of Maven-based build configurations (only the URL to the POM file is needed), the visualization of various project data gathered from POM, and a new type of dependency trigger - Maven artifact trigger. This type of trigger starts a build each time the specified Maven artifact changes.
Build Configuration Templates
Templates can save a lot of manual work when you need to define a number of duplicate or very similar build configurations. Now you can create a template with the common (shared) settings, and then inherit any number of build configs from this template. You can also extract a template from any of your existing build configurations.
Issue Tracker Integration
How often do you see comments like this: "TW-3431 fixed"? How about a little more detail on the issue at hand? The issue tracker integration provides an in-place bug title, direct navigation to the issue, and other productivity goodies. It is currently available for Jira, Bugzilla and JetBrains YouTrack out of the box, but can easily be extended to other systems via plugins
Command Line Tool for Personal Builds
Previously, if you weren't using Eclipse, IntelliJ IDEA or Visual Studio, you were out of luck for missing one of the most important TeamCity features - Remote Run and Pre-Tested Commits. But things have changed. As the name suggests, now you can initiate the building of your local changes remotely on the server - from the local command line. No IDEs required.
Many Other Improvements
Including:
- Per-test responsibilities
- Build artifacts promotion
- Dedicated change details/status page
- Incremental update of the build log
- Project archiving
- Backup & Restore for easier TeamCity maintenance. Backup can be started from the UI or from the command line; Restore and Migration can be started from the command line only. Command line backup does not require stopping TeamCity if an external database is used.
- Audit of user actions
- Coverage support for .NET & Java. Based on IntelliJ IDEA coverage engine for Java and on NCover
(ver 1, ver 3) or PartCover for .NET.- Git & Mercurial support now bundled with TeamCity
- Remote Run for Git from IntelliJ IDEA & Eclipse
- Support for Cucumber, Shoulda, Test-Spec in Rake runner
- TeamCity IntelliJ IDEA plugin now works with IntelliJ IDEA Community Edition and RubyMine.
Download TeamCity 5.0 (free 60-day trial). See also complete release notes
Read more: My 2 first Joomla! component in continuous build
A small script developed to upgrade TeamCity with no or less effort! a very simple script, easily extensible.
“TeamCity is a continuous integration and build management system. With TeamCity, you can set up a build server within minutes and enjoy out of the box continuous unit testing, code quality analysis, and early reporting on build problems — even without leaving your favorite IDE. TeamCity offers a gentle learning curve, so you can quickly improve your release management practices by gradually adopting its advanced features and capabilities.”
This script only work if
# ./updateTeamCity.sh newVersionNumber installPathHome
example:
/home/teamcity > ./updateTeamCity.sh 4.5.4 /home/teamcity
Output of the script
stopping current TeamCity at /home/teamcity/TeamCity
done!
Read database settings from database.properties
Moving current TeamCity /home/teamcity/TeamCity to /home/teamcity/TeamCity.20093830
done!
Saving database to file system at /home/teamcity/TeamCity.20093830/teamcity.sql
done!
getting the latest version at http://download.jetbrains.com/teamcity/TeamCity-4.5.4.tar.gz
done!
Unpacking new version
done!
Copying previous customizations
done!
Copying required 3rd party librairies
done!
Copying local agent build.properties to new TeamCity
done!
Starting new TeamCity
done!
Don’t expect more at the moment, it has been created to make the update of TeamCity faster for ME now. Feedback is appreciated, and improvement/ideas are always welcomed.
GET THE SCRIPT updateTeamCity HERE
Continuous Integration is a software development practice where members of a team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day. Each integration is verified by an automated build (including test) to detect integration errors as quickly as possible. Many teams find that this approach leads to significantly reduced integration problems and allows a team to develop cohesive software more rapidly. This article is a quick overview of Continuous Integration summarizing the technique and its current usage. Martin Fowler about continuous integration
Things get clearer in my mind...I will use a set of Open Sources software to reach this ambitious goal.
Maintain a Single Source Repository.
Either Subversion running locally on windows/Linux, but I will stay with www.joomlaCode.org at the beginning
Every Commit Should Build the Mainline on an Integration Machine
I will use TeamCity continuous build server as it is free for personal use (limited to 20 concurrent build), run on Windows and Linux but require a java VM to run (may not be wanted in a PHP environment). Anyway with ANT, it will be possible to use another build server like Cruise Control or PHP Under Control.
That is an objective :-)
Test in a Clone of the Production Environment
Make it Easy for Anyone to Get the Latest Executable
Successful build (Artifacts) are only available if build is successful. Team City provide this with less effort (configuration)
Everyone can see what's happening
That will be, auto publish to some demo site in a configurable way. At the moment, at http://demo.waltercedric.com and http://demo2.waltercedric.com for me :-)
It seem that nobody is providing such a package as I am after only one day at the top of search results in Google "continuous build joomla"
Tux Droid is a Linux wireless Tux mascot (210mm x 180mm x 140mm - with lowered wings) with a programmable interface, allowing it to announce events by its gestures and by ALSA driven sound. The events are detected by specific gadgets, which are handled by the Tux Gadget Manager.
The Tux Droid supports Linux kernel 2.4 or later and needs a 800 MHz CPU and 128 MB RAM. It communicates by infrared to the USB port (1.1 or 2.0) and for media detection it needs an internet connection. The mascot is driven by Atmel AVR RISC microcontrollers.
The mascot comes with a microphone and an infrared receiver, to perform a 2.4 GHz wireless full-duplex digital link between the USB dongle.
The Tux Droid also has a light sensor and a push button on top of the head. Its gestures cover e.g. eye- and wing-movements, while switch sensors in both wings are triggered by pushing the wings. For its sound output there is a volume control wheel to control a speaker and a 3.5mm stereo audio socket for audio out.
My tux Droid has arrived 2 days ago.
Shortly here is a list of what I do not like
And what I like a lot
I did develop a Tux Droid plugin for TeamCity which is not far away from running and be distributed under GPL v3
Download the latest software go to the kysoh website.
Developers documentation visit our wiki.
For the forum go here.
For the trackers go here.
And for the community website go here.

Maven for PHP uses the power of Maven for building, reporting on and creating documentations of PHP projects. It adapts the Maven build lifecycle to the PHP world while fully supporting PHP 4 and PHP 5. PHP for Maven uses PHPUnit for unit testing and doxygen for creating the api documentation.
Use a PHP library project to create a library that can be used by other PHP libraries or PHP web projects. Use a PHP web project to create a standalone web project.
So I quickly describe what I did install on my root server (OpenSuse 11.X)
My Objectives: being able to build all my Joomla! component using best agile development practices
“Specific tools and techniques such as continuous integration, automated or xUnit test, pair programming, test driven development, design patterns, domain-driven design, code refactoring and other techniques are often used to improve quality and enhance project agility.”
Read more: Configuring TeamCity, Maven for PHP for Joomla continuous build
Privacy Statement | Copyright Notice | Licenses
© 1999-2012 Waltercedric.com. Designed by Cédric Walter. Sitemap
Reproduction without explicit permission is prohibited. All Rights Reserved. All photos remain copyright © their rightful owners. No copyright infringement is intended.
Disclaimer: The editor(s) reserve the right to edit any comments that are found to be abusive, offensive, contain profanity, serves as spam, is largely self-promotional, or displaying attempts to harbour irrelevant text links for any purpose.