~ubuntu-branches/ubuntu/lucid/kdeadmin/lucid-proposed

« back to all changes in this revision

Viewing changes to KDEAdminNightly.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając, Michal Zajac, Jonathan Thomas
  • Date: 2009-12-02 16:40:24 UTC
  • mfrom: (1.2.34 upstream)
  • Revision ID: james.westby@ubuntu.com-20091202164024-st9gsr54dquzdl03
Tags: 4:4.3.80-0ubuntu1
[ Michal Zajac ]
* New upstream beta release.
* debian/control - bump on Build-Depends
* debian/patches/
 - Removed both Kubuntu specific patches since they were upstreamed
 - Removed 01_system_config_printer_kde_cupsutils.diff because it's
   not used
 - Fixed 03_fix_runtime_fail_type_mismatch.diff 

[ Jonathan Thomas ]
* Bump build-depend version on kdepimlibs-dev to (>= 4:4.3.80)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is a script for running a Nightly build of kdeutils
 
2
# It is ready for testing.
 
3
# To adapt it for other projects, basically only the KDE_CTEST_VCS_REPOSITORY variable
 
4
# has to be changed.
 
5
#
 
6
# It uses the file KDECTestNightly.cmake, which is in KDE svn in kdesdk/cmake/modules/. 
 
7
# You need to have this file on some location on your system and then point the environment variable
 
8
# KDECTESTNIGHTLY_DIR to the directory containing this file when running this script.
 
9
#
 
10
# At the bottom of this file you can find  (commented out) a simple shell script which 
 
11
# I use to drive the Nightly builds on my machine. You have to adapt this to the 
 
12
# conditions on your system, then you can run it e.g. via cron.
 
13
#
 
14
# Alex <neundorf AT kde.org>
 
15
 
 
16
# The VCS of KDE is "svn", also specify the repository
 
17
set(KDE_CTEST_VCS svn)
 
18
set(KDE_CTEST_VCS_REPOSITORY https://svn.kde.org/home/kde/trunk/KDE/kdeadmin)
 
19
 
 
20
# for now hardcode the generator to "Unix Makefiles"
 
21
set(CTEST_CMAKE_GENERATOR "Unix Makefiles" )
 
22
 
 
23
 
 
24
# generic support code, provides the kde_ctest_setup() macro, which sets up everything required:
 
25
file(TO_CMAKE_PATH  $ENV{KDECTESTNIGHTLY_DIR}  KDECTESTNIGHTLY_DIR)
 
26
include( "${KDECTESTNIGHTLY_DIR}/KDECTestNightly.cmake"  OPTIONAL  RESULT_VARIABLE fileIncluded)
 
27
 
 
28
if(NOT fileIncluded)
 
29
   message(FATAL_ERROR "Did not find file ${KDECTESTNIGHTLY_DIR}/KDECTestNightly.cmake . Set the environment variable KDECTESTNIGHTLY_DIR  to the directory where this file is located. In KDE svn it is in kdesdk/cmake/modules/ ")
 
30
endif(NOT fileIncluded)
 
31
 
 
32
# set up binary dir, source dir, etc.
 
33
kde_ctest_setup("${CMAKE_CURRENT_LIST_FILE}")
 
34
 
 
35
# now actually do the Nightly
 
36
ctest_empty_binary_directory("${CTEST_BINARY_DIRECTORY}")
 
37
ctest_start(Nightly)
 
38
ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}" )
 
39
 
 
40
# read some settings
 
41
include("${CTEST_SOURCE_DIRECTORY}/CTestConfig.cmake")
 
42
include("${CTEST_SOURCE_DIRECTORY}/CTestCustom.cmake" OPTIONAL)
 
43
 
 
44
# if CMAKE_INSTALL_PREFIX and BUILD_experimental were defined on the command line, put them
 
45
# in the initial cache, so cmake gets them
 
46
kde_ctest_write_initial_cache("${CTEST_BINARY_DIRECTORY}" CMAKE_INSTALL_PREFIX)
 
47
 
 
48
# configure, build, test, submit
 
49
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" )
 
50
ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" )
 
51
ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" )
 
52
ctest_submit()
 
53
 
 
54
# optionally install afterwards, so additional nightly builds can use this current install 
 
55
# (e.g. kdepimlibs could use this kdelibs install)
 
56
if(DO_INSTALL)
 
57
   kde_ctest_install("${CTEST_BINARY_DIRECTORY}" )
 
58
endif(DO_INSTALL)
 
59
 
 
60
 
 
61
############################################################################################
 
62
#
 
63
# ------------8<-----------------8<---------------------8<---------------------8<-----------
 
64
# #!/bin/sh
 
65
#
 
66
# # point to the directory where KDECTestNightly.cmake is located (in svn: kdesvn/cmake/modules/ )
 
67
# export KDECTESTNIGHTLY_DIR=/home/alex/src/kde4-svn/KDE\ dir/kdesdk/cmake/modules/
 
68
#
 
69
#
 
70
# # Set which ctest will be used, where the results should be installed to, and which suffix the 
 
71
# CTEST=/opt/cmake-2.6.2-Linux-i386/bin/ctest
 
72
# INSTALL_ROOT=/home/alex/Dashboards/installs/2.6.2
 
73
# SUFFIX=cmake-2.6.2
 
74
#
 
75
# # set CMAKE_PREFIX_PATH so that everything necessary for building automoc4 will be found:
 
76
# export CMAKE_PREFIX_PATH=/opt/qt-4.5/qt/
 
77
#
 
78
# $CTEST -V -VV -S ~/src/kde4-svn/kdesupport/automoc/Automoc4Nightly.cmake,KDE_CTEST_BUILD_SUFFIX=$SUFFIX,CMAKE_INSTALL_PREFIX=$INSTALL_ROOT/automoc4,DO_INSTALL=TRUE
 
79
#
 
80
# # For building kdelibs we need more stuff in CMAKE_PREFIX_PATH:
 
81
# export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:$INSTALL_ROOT/automoc4
 
82
# export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:/opt/shared-mime-info
 
83
# export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:/opt/kdesupport/
 
84
#
 
85
# $CTEST -V -VV -S ~/src/kde4-svn/KDE\ dir/kdelibs/KDELibsNightly.cmake,KDE_CTEST_BUILD_SUFFIX=$SUFFIX,CMAKE_INSTALL_PREFIX=$INSTALL_ROOT/kdelibs,DO_INSTALL=TRUE
 
86
#
 
87
# ------------8<-----------------8<---------------------8<---------------------8<-----------