-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit-build.html
58 lines (51 loc) · 2.15 KB
/
submit-build.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Submitting a VXL build</title>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<style type="text/css">
body { color: black ; background-color: white }
</style>
</head>
<body>
<h1>Submitting a <a href="https://vxl.github.io/"><img alt="VXL" src="logo1-quant.gif" border="0"/></a> build to the dashboard</h1>
<hr/>
Follow the instructions below to contribute a submission to the
<a href="http://www.cdash.org/CDash/index.php?project=vxl">vxl quality dashboard</a>.
<ol>
<li> Create a directory to house dashboard builds (e.g. <code>~/Dashboards</code> or <code>c:\Dashboards</code>):
<pre>
$ mkdir ~/Dashboards
$ cd ~/Dashboards</pre>
<li> Check out the vxl testing scripts:
<pre>
$ mkdir vxl-scripts
$ cd vxl-scripts
$ git init
$ git remote add -t dashboard origin https://github.com/vxl/vxl.git
$ git pull
$ cd ..
$ ls vxl-scripts
dash_example.cmake vxl_common.cmake</pre>
<li> Copy and edit the example script to suit your configuration:
<pre>
$ cp vxl-scripts/dash_example.cmake vxl-scripts/my_vxl_dashboard.cmake
$ $EDITOR vxl-scripts/my_vxl_dashboard.cmake</pre>
It might look like this:
<pre>
set(CTEST_SITE "mylinuxbox.myinstitution")
set(CTEST_BUILD_NAME "Linux-gcc")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
include(${CTEST_SCRIPT_DIRECTORY}/vxl_common.cmake)</pre>
The script you create configures local details.
Most work is done by the <code>vxl_common.cmake</code> script it includes.
<li> Create a scheduled task (windows) or cron-job (unix) that runs the script with ctest.
The command line should be something like
<pre>
ctest -S ~/Dashboards/vxl-scripts/my_vxl_dashboard.cmake -V > ~/Dashboards/vxl-scripts/my_vxl_dashboard.log 2>&1</pre>
For nightly builds, the job should run at some time after 11pm Eastern.
See the <a href="http://www.cmake.org/Wiki/CMake_Scripting_Of_CTest#Setting_Up_Cron.2FScheduler">CTest Wiki</a>
for help configuring scheduled tasks.
</ol>
</body>
</html>