<div class="gmail_quote">On Fri, Oct 1, 2010 at 1:25 PM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/10/1 <<a href="mailto:fatman@crackmonkey.us">fatman@crackmonkey.us</a>>:<br>
<div class="im">><br>
> Hi list,<br>
><br>
> I Googled for this but didn't find anything.<br>
><br>
> CMake is integrating well with Buildbot to make a sort of poor-man's<br>
> build farm. The one thing I can't seem to work out is a crossplatform<br>
> way to upload CPack-built packages (Windows and Linux) to a web server<br>
> (Ubuntu).<br>
<br>
</div>that's true you have file(DOWNLOAD ...) (which internally uses libcurl)<br>
so it should be fairly easy to add file(UPLOAD ...) but currently<br>
AFAIK this does not exists...<br>
may be worth a feature request.<br></blockquote><div><br></div><div>We do not have "file(UPLOAD" but we do have "ctest_submit(FILES ..." -- it is possible to hack together a ctest script that will send a file to a URL via http post like we do with xml files as CDash submissions.</div>
<div><br></div><div>Still, it would be a worthy feature request to add this functionality to the cmake file command. Then you could do in one line what it probably takes 20 right now to do with a ctest_submit hack.</div><div>
<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> The target web server supports SSH, SCP, DAV and possibly NFS.<br>
> Any ideas? Or should I be asking Buildbot's mailing list?<br>
<br>
</div>I don't know or use buildbot but it appears to be written in python so may<br>
I guess python may be required when using build bot.<br>
May be using some 100% python SSH lib (in order to be cross platform)<br>
like paramiko<br>
(<a href="http://www.lag.net/paramiko/" target="_blank">http://www.lag.net/paramiko/</a>) is doable in order to transfer your<br>
files using scp.<br>
<br>
You may call your python scp script from CMake using execute_process<br>
after a find_package(PythonInterp).<br>
<font color="#888888"><br>
--<br>
Erk<br>
Membre de l'April - « promouvoir et défendre le logiciel libre » -<br>
<a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>