Nobody has done this yet for KDE, but it should be quite similar. If you intend to do this, please contact the kde-buildsystem mailing list, we will do our best to get it working quickly.

Nobody has done this yet for KDE, but it should be quite similar. If you intend to do this, please contact the kde-buildsystem mailing list, we will do our best to get it working quickly.

+

+

= How to get help=

+

+

If you have any questions regarding Nightly or Continuous builds for KDE or about CDash or CTest in general, please ask on the [https://mail.kde.org/mailman/listinfo/kde-buildsystem kde-buildsystem] or [https://mail.kde.org/mailman/listinfo/kde-core-devel kde-core-devel] KDE mailing lists, or also on the [http://public.kitware.com/cgi-bin/mailman/listinfo/cdash CDash mailing list].

Revision as of 00:18, 26 March 2010

Contents

What is a dashboard ?

A dashboard can show the results of Nightly and Continuous builds of a software package. This includes warnings and errors from the configure and build process as well as the results of the executed tests belonging to the software package. This is not only displayed for one machine, but ideally for all supported operating systems such results are submitted, also with different configurations, e.g. one for a minimal system with most optional features disabled and one for a full featured system.

For KDE CDash-based dashboards are set up at http://my.cdash.org, a service provided by Kitware. CDash only displays the results, the actual building and testing is done decentral on other machines.
When failures occur, like build errors or failed tests, notification emails can be sent by CDash.
So by building and testing KDE each day on the supported platforms and collecting the results in a central place, we can make sure that KDE stays compiling and also working on all supported platforms.

You can help too to increase the quality by setting up a Nightly build and submitting the results to http://my.cdash.org.

For which modules/packages are there dashboards ?

Currently there are dashboards set up for all modules of KDE, and one for kdesupport. There are not yet dashboards for extragear and koffice.
If you are interested in setting dashboards up for these too, just go to http://my.cdash.org and do it, or ask on the kde-buildsystem mailing list if you have any questions.

Some time to maintain the Nightly build, i.e. to upgrade the required libraries, e.g. Qt4 when necessary, to install new required libraries etc.

How to do it under Unix

This applies to Linux, FreeBSD and other Unixes. It should also apply to Mac OSX, but this hasn't been tested yet.
You can figure out how to set up the Nightly builds yourself, but we have also something prepared to make it really easy. Let's assume you want to contribute a Nightly build for the kdeutils modules. That's how you do it:

Checkout KDE/kdesdk/cmake/nightly-support/ from KDE svn. There, in the KDE/ subdirectory is a ctest-script ready to use for each KDE module.

Write a shell script which sets the CMAKE_PREFIX_PATH environment variable so that CMake will find everything required and then execute ctest with the KDEUtilsNightly.cmake script. This will look something like the following:

That's it basically. The -V option for ctest makes ctest verbose, so you can see what it's doing. The KDE_CTEST_BUILD_SUFFIX will be appended to the buildname displayed at http://my.cdash.org/index.php?project=kdeutils. Setting it to the used compiler is a sensible choice.

Set up a cron job which runs this script every day:

$ crontab -e
00 22 * * * /where/is/my/script/run_kdeutils_nightly.sh

That's it. Probably you first want to run the script manually a few times until everything works, but after that you can just have it executed via cron.
The next day you should then see your results on http://my.cdash.org.

If you want to contribute Nightly builds for more than one KDE module, it gets a little bit more complicated. You have to make sure that the modules are built in the right order, and that the modules are installed correctly, if other modules depend on them. For examples see kdesdk/cmake/nightly-support/example-scripts/, e.g. Nightlys-2.6.2 is the shell script I use on my machine to build (and install where necessary) all KDE modules on my Linux machine.

How to do it under Windows

Nobody has done this yet for KDE, but it should be quite similar. If you intend to do this, please contact the kde-buildsystem mailing list, we will do our best to get it working quickly.