Commit 9dc83886 authored by Charles Deltel's avatar Charles Deltel
Browse files

Merge branch 'migration_gitlab_doc' into 'master'

Migration gitlab doc

See merge request !2
parents 7ba4a103 eb6ff34f
......@@ -10,11 +10,12 @@ if (DOXYGEN_FOUND)
ADD_CUSTOM_TARGET (doc
${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 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 "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"
#doc.tgz is kept by Jenkins as a job artifact
#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 "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)")
......@@ -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)
#
\ No newline at end of file
#
......@@ -84,14 +84,14 @@ cmake -Wno-dev -DJENKINS_TAG=${BRANCH_TO_BUILD} -DJENKINS_GFORGE_USER=${INRIA_FO
#---------------------------------------------------------------
make -j 2 doc || error_code
make deploy-doc || error_code
###########################################################################
# TODO_migration_gitlab (ChD, 2021-07-15) :
# - this used to move the GATB doc to gforge.inria.ssh using scp and ssh
# (not possible any more)
# - move this doc elsewhere (gitlabpages?)
###########################################################################
make tgz-doc || error_code
mv doc/doc.tgz $GIT_DIR/.. # move to Jenkins workspace, to be kept as a job artifact
# Trigger gitlab-ci job to deploy doc.tgz on gitlabpages
curl -X POST \
-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 #
......
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