Kokoro: Check lint and doxygen
Move the doxygen CMake output from `out/docs` to `<build>/docs` `out/docs` requires a GN build or manual directory creation. Fixed: tint:791 Change-Id: If072f962f444a2d60c368d7c38fd1bb4c5b97caf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/50309 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
parent
6344d4c2f5
commit
4ace822c4b
|
@ -124,7 +124,9 @@ if(${TINT_BUILD_DOCS})
|
||||||
find_package(Doxygen)
|
find_package(Doxygen)
|
||||||
if(DOXYGEN_FOUND)
|
if(DOXYGEN_FOUND)
|
||||||
add_custom_target(tint-docs ALL
|
add_custom_target(tint-docs ALL
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
|
COMMAND ${CMAKE_COMMAND}
|
||||||
|
-E env "DOXYGEN_OUTPUT_DIRECTORY=${CMAKE_BINARY_DIR}/docs"
|
||||||
|
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
COMMENT "Generating API documentation"
|
COMMENT "Generating API documentation"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
2
Doxyfile
2
Doxyfile
|
@ -58,7 +58,7 @@ PROJECT_LOGO =
|
||||||
# entered, it will be relative to the location where doxygen was started. If
|
# entered, it will be relative to the location where doxygen was started. If
|
||||||
# left blank the current directory will be used.
|
# left blank the current directory will be used.
|
||||||
|
|
||||||
OUTPUT_DIRECTORY = out/docs
|
OUTPUT_DIRECTORY = $(DOXYGEN_OUTPUT_DIRECTORY)
|
||||||
|
|
||||||
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
||||||
# directories (in 2 levels) under the output directory of each output format and
|
# directories (in 2 levels) under the output directory of each output format and
|
||||||
|
|
|
@ -59,6 +59,8 @@ ORIGINAL_SRC_DIR="$(pwd)"
|
||||||
. /bin/using.sh # Declare the bash `using` function for configuring toolchains.
|
. /bin/using.sh # Declare the bash `using` function for configuring toolchains.
|
||||||
|
|
||||||
using depot_tools
|
using depot_tools
|
||||||
|
using go-1.14.4 # Speeds up ./tools/lint
|
||||||
|
using doxygen-1.8.18
|
||||||
|
|
||||||
status "Cloning to clean source directory"
|
status "Cloning to clean source directory"
|
||||||
# We do this so that the docker script can be tested in a local development
|
# We do this so that the docker script can be tested in a local development
|
||||||
|
@ -72,6 +74,9 @@ status "Fetching dependencies"
|
||||||
cp standalone.gclient .gclient
|
cp standalone.gclient .gclient
|
||||||
with_retry gclient sync
|
with_retry gclient sync
|
||||||
|
|
||||||
|
status "Linting"
|
||||||
|
./tools/lint
|
||||||
|
|
||||||
status "Configuring build system"
|
status "Configuring build system"
|
||||||
if [ "$BUILD_SYSTEM" == "cmake" ]; then
|
if [ "$BUILD_SYSTEM" == "cmake" ]; then
|
||||||
using cmake-3.17.2
|
using cmake-3.17.2
|
||||||
|
|
Loading…
Reference in New Issue