mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Run benchmarks on gitlab CI
This commit is contained in:
parent
e65b285f06
commit
6492e9522a
2 changed files with 8 additions and 1 deletions
|
@ -25,6 +25,7 @@ stages:
|
||||||
- cmake --build . -- -j $(nproc)
|
- cmake --build . -- -j $(nproc)
|
||||||
- cmake --install .
|
- cmake --install .
|
||||||
- if [[ "${BUILD_TESTS_ONLY}" ]]; then ./openmw_test_suite; fi
|
- if [[ "${BUILD_TESTS_ONLY}" ]]; then ./openmw_test_suite; fi
|
||||||
|
- if [[ "${BUILD_TESTS_ONLY}" ]]; then ./openmw_detournavigator_navmeshtilescache_benchmark; fi
|
||||||
- ccache -s
|
- ccache -s
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -4,9 +4,14 @@ set -xeo pipefail
|
||||||
|
|
||||||
free -m
|
free -m
|
||||||
|
|
||||||
|
BUILD_UNITTESTS=OFF
|
||||||
|
BUILD_BENCHMARKS=OFF
|
||||||
|
|
||||||
if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
||||||
export GOOGLETEST_DIR="${PWD}/googletest/build/install"
|
export GOOGLETEST_DIR="${PWD}/googletest/build/install"
|
||||||
env GENERATOR='Unix Makefiles' CONFIGURATION=Release CI/build_googletest.sh
|
env GENERATOR='Unix Makefiles' CONFIGURATION=Release CI/build_googletest.sh
|
||||||
|
BUILD_UNITTESTS=ON
|
||||||
|
BUILD_BENCHMARKS=ON
|
||||||
fi
|
fi
|
||||||
|
|
||||||
declare -a CMAKE_CONF_OPTS=(
|
declare -a CMAKE_CONF_OPTS=(
|
||||||
|
@ -43,7 +48,8 @@ if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
||||||
-DBUILD_ESSIMPORTER=OFF \
|
-DBUILD_ESSIMPORTER=OFF \
|
||||||
-DBUILD_OPENCS=OFF \
|
-DBUILD_OPENCS=OFF \
|
||||||
-DBUILD_WIZARD=OFF \
|
-DBUILD_WIZARD=OFF \
|
||||||
-DBUILD_UNITTESTS=ON \
|
-DBUILD_UNITTESTS=${BUILD_UNITTESTS} \
|
||||||
|
-DBUILD_BENCHMARKS=${BUILD_BENCHMARKS} \
|
||||||
-DGTEST_ROOT="${GOOGLETEST_DIR}" \
|
-DGTEST_ROOT="${GOOGLETEST_DIR}" \
|
||||||
-DGMOCK_ROOT="${GOOGLETEST_DIR}" \
|
-DGMOCK_ROOT="${GOOGLETEST_DIR}" \
|
||||||
..
|
..
|
||||||
|
|
Loading…
Reference in a new issue