<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Great. I think this looks like what I am looking for:<div><a href="https://github.com/Slicer/Slicer/blob/master/CMake/CTestPackage.cmake#L43">https://github.com/Slicer/Slicer/blob/master/CMake/CTestPackage.cmake#L43</a></div><div><br></div><div>I was never able to get you coverage hack to work... I'll have to git give these things another looks.</div><div><br></div><div>Thanks!</div><div>Brad<br><div><div><div>On Feb 20, 2014, at 7:53 PM, Jean-Christophe Fillion-Robin <<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr"><div>Hi Brad, <br><br>Within Slicer, I created a macro name "ctest_package" that will package a build directory by building only the "package" target. That should be helpful.<br></div><div>
<br></div><div>See <a href="https://github.com/Slicer/Slicer/blob/4a06a8a1e07fc85935b41d3f4e6172c867ed8971/CMake/SlicerDashboardDriverScript.cmake#L353-356">https://github.com/Slicer/Slicer/blob/4a06a8a1e07fc85935b41d3f4e6172c867ed8971/CMake/SlicerDashboardDriverScript.cmake#L353-356</a><br>
<br></div><div>To upload the package, you could look at what is done in that same file.<br><br>Hth<br></div><div>Jc<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 7:21 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am in need of some ctest scripting assistance.<br>
<br>
I need to build the additional "dist" target on SimpleITK's release builds in the dashboard script, with the goal to upload the built packages. My problem is I can't get the additional "ctest_build" command to work on windows.<br>
<br>
Here is the CMake script which add the dist target which is not part of "all":<br>
<a href="https://github.com/SimpleITK/SimpleITK/blob/master/Wrapping/dist/CMakeLists.txt#L7" target="_blank">https://github.com/SimpleITK/SimpleITK/blob/master/Wrapping/dist/CMakeLists.txt#L7</a><br>
<br>
And here is the current simpleitk_common.cmake file based off of ITK where I added a build error variable:<br>
<a href="https://github.com/SimpleITK/SimpleITK/blob/dashboard/simpleitk_common.cmake#L364" target="_blank">https://github.com/SimpleITK/SimpleITK/blob/dashboard/simpleitk_common.cmake#L364</a><br>
<br>
So my basic logic is that after the main build if there are no build errors ( and many not test failures ), build the dist target, and upload the packages. The complication is that the common dashboard script if for the "SuperBuild" level of SimpleITK , while the dist target is the the SimpleITK sub-project. So this is what I have been trying that fails on windows:<br>
<br>
<br>
macro ( dashboard_hook_end )<br>
message( "build_number_errors: ${build_number_errors}" )<br>
<br>
# build the distribution target to make the packages to upload<br>
ctest_build( BUILD "${CTEST_BINARY_DIRECTORY}/SimpleITK-build" TARGET dist )<br>
<br>
if ( ${build_number_errors} EQUAL "0" )<br>
message ( "dashboard_git_branch: ${dashboard_git_branch}" )<br>
file ( GLOB PY_EGG "${CTEST_DASHBOARD_ROOT}/SimpleITK-build/SimpleITK-build/Wrapping/dist/*.egg" )<br>
file ( GLOB ZIPS "${CTEST_DASHBOARD_ROOT}/SimpleITK-build/SimpleITK-build/Wrapping/dist/*.zip" )<br>
...<br>
# upload some files<br>
...<br>
endforeach()<br>
<br>
else()<br>
message( "Build failure, not uploading!" )<br>
endif()<br>
endmacro()<br>
<br>
I have hacked around this for a while trying various things, and haven't gotten any where. I saw an error message at one point indicating that this additional build was trying to use the SuperBuild MSVC project. It's been rather difficult as the output of these hook doesn't make to cdash.<br>
<br>
I have spent too much time on this and hope to get some help, to know the best ways to do this type of thing.<br>
<br>
Thanks,<br>
Brad<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br>
</div>
</blockquote></div><br></div></div></body></html>