@@ -216,22 +216,13 @@ def configure_doxyfile(
216216 fastdds_branch = os .environ .get ('FASTDDS_BRANCH' , None )
217217
218218 # First try to checkout to ${FASTDDS_BRANCH}
219- # Else try with current documentation branch
220- # Else checkout to master
219+ # Else checkout to 2.13.x
221220 if (fastdds_branch and
222221 fastdds .refs .__contains__ ('origin/{}' .format (fastdds_branch ))):
223222 fastdds_branch = 'origin/{}' .format (fastdds_branch )
224- elif (docs_branch and
225- fastdds .refs .__contains__ ('origin/{}' .format (docs_branch ))):
226- fastdds_branch = 'origin/{}' .format (docs_branch )
227223 else :
228- print (
229- 'Fast DDS does not have either "{}" or "{}" branches' .format (
230- fastdds_branch ,
231- docs_branch
232- )
233- )
234- fastdds_branch = 'origin/master'
224+ fastdds_branch = 'origin/2.13.x'
225+ print (f'Fast DDS branch is not set by env var. Using "{ fastdds_branch } "' )
235226
236227 # Actual checkout
237228 print ('Checking out Fast DDS branch "{}"' .format (fastdds_branch ))
@@ -248,20 +239,14 @@ def configure_doxyfile(
248239 fastdds_python_branch = os .environ .get ('FASTDDS_PYTHON_BRANCH' , None )
249240
250241 # First try to checkout to ${FASTDDS_PYTHON_BRANCH}
251- # Else try with current documentation branch
252- # Else checkout to master
242+ # Else checkout to 1.4.x
253243 if (fastdds_python_branch and
254244 fastdds_python .refs .__contains__ (
255245 'origin/{}' .format (fastdds_python_branch ))):
256246 fastdds_python_branch = 'origin/{}' .format (fastdds_python_branch )
257- elif (docs_branch and
258- fastdds_python .refs .__contains__ ('origin/{}' .format (docs_branch ))):
259- fastdds_python_branch = 'origin/{}' .format (docs_branch )
260247 else :
261- print (
262- 'Fast DDS Python does not have either "{}" or "{}" branches'
263- .format (fastdds_python_branch , docs_branch ))
264- fastdds_python_branch = 'origin/main'
248+ fastdds_python_branch = 'origin/1.4.x'
249+ print (f'Fast DDS Python branch is not set by env var. Using "{ fastdds_python_branch } "' )
265250
266251 # Actual checkout
267252 print ('Checking out Fast DDS Python branch "{}"' .format (
@@ -285,10 +270,13 @@ def configure_doxyfile(
285270 project_source_dir
286271 )
287272 # Generate doxygen documentation
288- subprocess .call ('doxygen {}' .format (doxyfile_out ), shell = True )
273+ doxygen_ret = subprocess .call ('doxygen {}' .format (doxyfile_out ), shell = True )
274+ if doxygen_ret != 0 :
275+ print ('Doxygen failed with return code {}' .format (doxygen_ret ))
276+ sys .exit (doxygen_ret )
289277
290278 # Generate SWIG code.
291- subprocess .call ('swig -python -doxygen -I{}/include \
279+ swig_ret = subprocess .call ('swig -python -doxygen -I{}/include \
292280 -outdir {}/fastdds_python/src/swig -c++ -interface \
293281 _fastdds_python -o \
294282 {}/fastdds_python/src/swig/fastddsPYTHON_wrap.cxx \
@@ -298,6 +286,10 @@ def configure_doxyfile(
298286 fastdds_python_repo_name ,
299287 fastdds_python_repo_name
300288 ), shell = True )
289+ if swig_ret != 0 :
290+ print ('SWIG failed with return code {}' .format (swig_ret ))
291+ sys .exit (swig_ret )
292+
301293 fastdds_python_imported_location = '{}/fastdds_python/src/swig' .format (
302294 fastdds_python_repo_name )
303295 autodoc_mock_imports = ["_fastdds_python" ]
0 commit comments