mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +00:00
Split Ubuntu_Clang_Tidy job
This commit is contained in:
parent
70ddca78bf
commit
8e9c78d20c
@ -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.
|
# 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
|
timeout: 3h
|
||||||
|
|
||||||
Ubuntu_Clang_Tidy:
|
.Ubuntu_Clang_Tidy_Base:
|
||||||
extends: Ubuntu_Clang
|
extends: Ubuntu_Clang
|
||||||
before_script:
|
before_script:
|
||||||
- CI/install_debian_deps.sh clang clang-tidy openmw-deps openmw-deps-dynamic
|
- 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_BUILD_TYPE: Debug
|
||||||
CMAKE_CXX_FLAGS_DEBUG: -O0
|
CMAKE_CXX_FLAGS_DEBUG: -O0
|
||||||
CI_CLANG_TIDY: 1
|
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
|
timeout: 3h
|
||||||
|
|
||||||
.Ubuntu_Clang_tests:
|
.Ubuntu_Clang_tests:
|
||||||
|
@ -47,6 +47,9 @@ fi
|
|||||||
if [[ $CI_CLANG_TIDY ]]; then
|
if [[ $CI_CLANG_TIDY ]]; then
|
||||||
CMAKE_CONF_OPTS+=(
|
CMAKE_CONF_OPTS+=(
|
||||||
-DCMAKE_CXX_CLANG_TIDY="clang-tidy;--warnings-as-errors=*"
|
-DCMAKE_CXX_CLANG_TIDY="clang-tidy;--warnings-as-errors=*"
|
||||||
|
-DBUILD_UNITTESTS=ON
|
||||||
|
-DBUILD_OPENCS_TESTS=ON
|
||||||
|
-DBUILD_BENCHMARKS=ON
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user