Attention une mise à jour du service Gitlab va être effectuée le mardi 18 janvier (et non lundi 17 comme annoncé précédemment) entre 18h00 et 18h30. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

Commit eb6ff34f authored by Charles Deltel's avatar Charles Deltel
Browse files

Migration gitlab doc

parent 7ba4a103
...@@ -10,11 +10,12 @@ if (DOXYGEN_FOUND) ...@@ -10,11 +10,12 @@ if (DOXYGEN_FOUND)
ADD_CUSTOM_TARGET (doc ADD_CUSTOM_TARGET (doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
) )
ADD_CUSTOM_TARGET (deploy-doc ADD_CUSTOM_TARGET (tgz-doc
COMMAND tar -zcf ${CMAKE_BINARY_DIR}/doc/doc.tgz -C ${CMAKE_BINARY_DIR}/doc/html . COMMAND tar -zcf ${CMAKE_BINARY_DIR}/doc/doc.tgz -C ${CMAKE_BINARY_DIR}/doc/html .
COMMAND scp ${CMAKE_BINARY_DIR}/doc/doc.tgz ${gatb-doc-user-login}@scm.gforge.inria.fr:/home/groups/gatb-core/ #doc.tgz is kept by Jenkins as a job artifact
COMMAND ssh ${gatb-doc-user-login}@scm.gforge.inria.fr "rm -rf /home/groups/gatb-core/htdocs/doc/api/*" #COMMAND scp ${CMAKE_BINARY_DIR}/doc/doc.tgz ${gatb-doc-user-login}@scm.gforge.inria.fr:/home/groups/gatb-core/
COMMAND ssh ${gatb-doc-user-login}@scm.gforge.inria.fr "tar -xf /home/groups/gatb-core/doc.tgz --no-overwrite-dir -C /home/groups/gatb-core/htdocs/doc/api" #COMMAND ssh ${gatb-doc-user-login}@scm.gforge.inria.fr "rm -rf /home/groups/gatb-core/htdocs/doc/api/*"
#COMMAND ssh ${gatb-doc-user-login}@scm.gforge.inria.fr "tar -xf /home/groups/gatb-core/doc.tgz --no-overwrite-dir -C /home/groups/gatb-core/htdocs/doc/api"
) )
INSTALL (CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} doc)") INSTALL (CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} doc)")
...@@ -25,4 +26,4 @@ endif (DOXYGEN_FOUND) ...@@ -25,4 +26,4 @@ endif (DOXYGEN_FOUND)
# HERE IS A COMMAND LINE TO COPY THE HTML DOCUMENTATION TO THE GFORGE SERVER (from the build directory) # HERE IS A COMMAND LINE TO COPY THE HTML DOCUMENTATION TO THE GFORGE SERVER (from the build directory)
# #
\ No newline at end of file
...@@ -84,14 +84,14 @@ cmake -Wno-dev -DJENKINS_TAG=${BRANCH_TO_BUILD} -DJENKINS_GFORGE_USER=${INRIA_FO ...@@ -84,14 +84,14 @@ cmake -Wno-dev -DJENKINS_TAG=${BRANCH_TO_BUILD} -DJENKINS_GFORGE_USER=${INRIA_FO
#--------------------------------------------------------------- #---------------------------------------------------------------
make -j 2 doc || error_code make -j 2 doc || error_code
make deploy-doc || error_code make tgz-doc || error_code
########################################################################### mv doc/doc.tgz $GIT_DIR/.. # move to Jenkins workspace, to be kept as a job artifact
# TODO_migration_gitlab (ChD, 2021-07-15) :
# - this used to move the GATB doc to gforge.inria.ssh using scp and ssh # Trigger gitlab-ci job to deploy doc.tgz on gitlabpages
# (not possible any more) curl -X POST \
# - move this doc elsewhere (gitlabpages?) -F token=$GITLAB_CI_TRIGGER_TO_PUBLISH_API_DOC \
########################################################################### -F ref=deploy-api-doc \
https://gitlab.inria.fr/api/v4/projects/30845/trigger/pipeline
################################################################ ################################################################
# END # # END #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment