mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 17:15:34 +00:00
Split Ubuntu_Clang_Tidy job
This commit is contained in:
parent
70ddca78bf
commit
8e9c78d20c
2 changed files with 48 additions and 2 deletions
|
@ -328,7 +328,7 @@ Ubuntu_Clang:
|
|||
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
|
||||
timeout: 3h
|
||||
|
||||
Ubuntu_Clang_Tidy:
|
||||
.Ubuntu_Clang_Tidy_Base:
|
||||
extends: Ubuntu_Clang
|
||||
before_script:
|
||||
- CI/install_debian_deps.sh clang clang-tidy openmw-deps openmw-deps-dynamic
|
||||
|
@ -338,7 +338,50 @@ Ubuntu_Clang_Tidy:
|
|||
CMAKE_BUILD_TYPE: Debug
|
||||
CMAKE_CXX_FLAGS_DEBUG: -O0
|
||||
CI_CLANG_TIDY: 1
|
||||
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
|
||||
CCACHE_BASEDIR: $CI_PROJECT_DIR
|
||||
CCACHE_DIR: $CI_PROJECT_DIR/ccache
|
||||
script:
|
||||
- mkdir -pv "${CCACHE_DIR}"
|
||||
- ccache -z -M "${CCACHE_SIZE}"
|
||||
- CI/before_script.linux.sh
|
||||
- cd build
|
||||
- find . -name *.o -exec touch {} \;
|
||||
- cmake --build . -- -j $(nproc) ${BUILD_TARGETS}
|
||||
- ccache -s
|
||||
artifacts:
|
||||
paths:
|
||||
- build/
|
||||
expire_in: 12h
|
||||
timeout: 3h
|
||||
|
||||
Ubuntu_Clang_Tidy_components:
|
||||
extends: .Ubuntu_Clang_Tidy_Base
|
||||
variables:
|
||||
BUILD_TARGETS: components components_qt oics osg-ffmpeg-videoplayer osgQt
|
||||
timeout: 3h
|
||||
|
||||
Ubuntu_Clang_Tidy_openmw:
|
||||
extends: .Ubuntu_Clang_Tidy_Base
|
||||
needs:
|
||||
- Ubuntu_Clang_Tidy_components
|
||||
variables:
|
||||
BUILD_TARGETS: openmw
|
||||
timeout: 3h
|
||||
|
||||
Ubuntu_Clang_Tidy_openmw-cs:
|
||||
extends: .Ubuntu_Clang_Tidy_Base
|
||||
needs:
|
||||
- Ubuntu_Clang_Tidy_components
|
||||
variables:
|
||||
BUILD_TARGETS: openmw-cs openmw-cs-tests
|
||||
timeout: 3h
|
||||
|
||||
Ubuntu_Clang_Tidy_other:
|
||||
extends: .Ubuntu_Clang_Tidy_Base
|
||||
needs:
|
||||
- Ubuntu_Clang_Tidy_components
|
||||
variables:
|
||||
BUILD_TARGETS: bsatool esmtool openmw-launcher openmw-iniimporter openmw-essimporter openmw-wizard niftest openmw_test_suite openmw-navmeshtool openmw-bulletobjecttool
|
||||
timeout: 3h
|
||||
|
||||
.Ubuntu_Clang_tests:
|
||||
|
|
|
@ -47,6 +47,9 @@ fi
|
|||
if [[ $CI_CLANG_TIDY ]]; then
|
||||
CMAKE_CONF_OPTS+=(
|
||||
-DCMAKE_CXX_CLANG_TIDY="clang-tidy;--warnings-as-errors=*"
|
||||
-DBUILD_UNITTESTS=ON
|
||||
-DBUILD_OPENCS_TESTS=ON
|
||||
-DBUILD_BENCHMARKS=ON
|
||||
)
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue