[CMake] CTestScript for all available git branches/tags
Nicolas Desprès
nicolas.despres at gmail.com
Tue Nov 29 05:44:37 EST 2011
On Tue, Nov 29, 2011 at 8:21 AM, <norulez at me.com> wrote:
> Is the CMake mailing list dead?
>
No :-)
Although, I am also really interested in your request, I have never setup a
ctest based continuous integration system so I don't have the answer. Maybe
we could try your idea on a small project and see how it behaves.
Regards,
Nicolas
Am 24.11.2011 um 15:45 schrieb "NoRulez" <norulez at me.com>:
>
> > So, nobody an idea?
> >
> > Do I only have to add an foreach loop like in the following example or is
> > there more to do:
> >
> > #get all branches/tags into GIT_BRANCHES/GIT_TAGS
> >
> > FOREACH(GIT_BRANCH ${GIT_BRANCHES})
> > execute_process (COMMAND ${GIT_EXECUTABLE} checkout ${GIT_BRANCH}
> > WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTORY})
> > ctest_start (${MODEL} TRACK ${MODEL})
> > ctest_update (SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE
> > NUMBER_FILES)
> > ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}")
> > ctest_build (BUILD "${CTEST_BINARY_DIRECTORY}")
> > ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}")
> > ctest_coverage ()
> > ctest_memcheck ()
> > ctest_submit ()
> > ENDFOREACH()
> >
> > FOREACH(GIT_TAG ${GIT_TAGS})
> > execute_process (COMMAND ${GIT_EXECUTABLE} checkout -b ${GIT_TAG}
> > WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTORY})
> > ctest_start (${MODEL} TRACK ${MODEL})
> > ctest_update (SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE
> > NUMBER_FILES)
> > ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}")
> > ctest_build (BUILD "${CTEST_BINARY_DIRECTORY}")
> > ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}")
> > ctest_coverage ()
> > ctest_memcheck ()
> > ctest_submit ()
> > ENDFOREACH()
> >
> > Thanks in advance
> >
> > Best Regards
> > NoRulez
> >
> > -----Ursprüngliche Nachricht-----
> > Von: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] Im Auftrag
> > von
> > norulez at me.com
> > Gesendet: Sonntag, 20. November 2011 18:21
> > An: CMake MailingList
> > Betreff: [CMake] CTestScript for all available git branches/tags
> >
> > Hi,
> >
> > if I have two or more projects (let's say proj1 and proj2) and for the
> > proj1 i've the branches v1.0 and v1.1. For proj2 i've the branches v1.0,
> > v1.1 and the tag v1.3 for example.
> >
> > Currently CTest runs in Continuous and Nightly mode for the master
> branch.
> > But I want to run those modes for every branch/tag for each project. So
> > for
> > e.g.:
> >
> > proj1/master
> > proj1/v1.0
> > proj1/v1.1
> >
> > proj2/master
> > proj2/v1.0
> > proj2/v1.1
> > proj2/v1.3
> >
> > How can I do that?
> >
> > Many thanks in advance
> >
> > Best Regards
> > NoRulez
> > --
> >
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> >
> > --
> >
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
--
Nicolas Desprès
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111129/4d4ee8a4/attachment.htm>
More information about the CMake
mailing list