CI: use ns3 for the doxygen job
This commit is contained in:
@@ -65,7 +65,7 @@ function usage
|
||||
report all undocumented elements, and to reduce the run time.
|
||||
The output of this special run is kept in doc/$WARNINGSLOGFILE.
|
||||
To further reduce the run time, the -i option also skips
|
||||
print-introspected-doxygen, so waf doesn\'t have to compile
|
||||
print-introspected-doxygen, so ns3 doesn\'t have to compile
|
||||
any modified files at all.
|
||||
|
||||
The -f, -l, and -s options skip the doxygen run altogether.
|
||||
@@ -338,18 +338,18 @@ EOF
|
||||
|
||||
intro_h="introspected-doxygen.h"
|
||||
if [ $skip_intro -eq 1 ]; then
|
||||
verbose "" "Skipping ./waf build"
|
||||
verbose "" "Skipping ./ns3 build"
|
||||
verbose -n "Trying print-introspected-doxygen with doxygen build"
|
||||
(cd "$ROOT" && ./waf --run-no-build print-introspected-doxygen >doc/$intro_h 2>&6 )
|
||||
status_report $? "./waf --run print-introspected-doxygen" noexit
|
||||
(cd "$ROOT" && ./ns3 run print-introspected-doxygen --no-build >doc/$intro_h 2>&6 )
|
||||
status_report $? "./ns3 run print-introspected-doxygen" noexit
|
||||
else
|
||||
# Run introspection, which may require a build
|
||||
verbose -n "Building"
|
||||
(cd "$ROOT" && ./waf build >&6 2>&6 )
|
||||
status_report $? "./waf build"
|
||||
(cd "$ROOT" && ./ns3 build >&6 2>&6 )
|
||||
status_report $? "./ns3 build"
|
||||
verbose -n "Running print-introspected-doxygen with doxygen build"
|
||||
(cd "$ROOT" && ./waf --run-no-build print-introspected-doxygen >doc/$intro_h 2>&6 )
|
||||
status_report $? "./waf --run print-introspected-doxygen"
|
||||
(cd "$ROOT" && ./ns3 run print-introspected-doxygen --no-build >doc/$intro_h 2>&6 )
|
||||
status_report $? "./ns3 run print-introspected-doxygen"
|
||||
fi
|
||||
|
||||
# Waf insists on writing cruft to stdout
|
||||
@@ -357,8 +357,8 @@ EOF
|
||||
rm doc/$intro_h.bak
|
||||
|
||||
verbose -n "Rebuilding doxygen docs with full errors"
|
||||
(cd "$ROOT" && ./waf --doxygen-no-build >&6 2>&6 )
|
||||
status_report $? "./waf --doxygen-no-build"
|
||||
(cd "$ROOT" && ./ns3 docs doxygen-no-build >&6 2>&6 )
|
||||
status_report $? "./ns3 docs doxygen-no-build"
|
||||
|
||||
# Swap back to original config
|
||||
rm -f $conf
|
||||
|
||||
@@ -23,10 +23,8 @@ doxygen:
|
||||
- mkdir -p $CCACHE_BASEDIR_VALUE
|
||||
- export CCACHE_BASEDIR=${PWD}
|
||||
- export CCACHE_DIR=${PWD}/$CCACHE_BASEDIR_VALUE
|
||||
- CXX="ccache $COMPILER" ./waf configure --enable-examples --enable-tests --enable-asserts -d release
|
||||
- ./waf
|
||||
# - ./ns3 configure -d release -GNinja --enable-examples --enable-tests --enable-asserts
|
||||
# - ./ns3 build
|
||||
- CXX=$COMPILER ./ns3 configure --enable-examples --enable-tests --enable-asserts -d release
|
||||
- ./ns3 build
|
||||
# - mkdir -p public/doxygen
|
||||
- git remote add ns-3-origin https://gitlab.com/nsnam/ns-3-dev.git || true
|
||||
- git fetch ns-3-origin
|
||||
|
||||
Reference in New Issue
Block a user