Merge branch 'gitlab_tests' into 'master'
Run unit tests in gitlab CI for linux build See merge request OpenMW/openmw!314pull/593/head
commit
21fa55de8e
@ -1,13 +1,17 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -ex
|
||||||
|
|
||||||
git clone -b release-1.10.0 https://github.com/google/googletest.git
|
git clone -b release-1.10.0 https://github.com/google/googletest.git
|
||||||
cd googletest
|
cd googletest
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake \
|
cmake \
|
||||||
|
-D CMAKE_C_COMPILER="${CC}" \
|
||||||
|
-D CMAKE_CXX_COMPILER="${CXX}" \
|
||||||
|
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
-D CMAKE_BUILD_TYPE="${CONFIGURATION}" \
|
-D CMAKE_BUILD_TYPE="${CONFIGURATION}" \
|
||||||
-D CMAKE_INSTALL_PREFIX=. \
|
-D CMAKE_INSTALL_PREFIX="${GOOGLETEST_DIR}" \
|
||||||
-G "${GENERATOR}" \
|
-G "${GENERATOR}" \
|
||||||
..
|
..
|
||||||
cmake --build . --config "${CONFIGURATION}"
|
cmake --build . --config "${CONFIGURATION}" -- -j $(nproc)
|
||||||
cmake --build . --target install --config "${CONFIGURATION}"
|
cmake --install . --config "${CONFIGURATION}"
|
||||||
|
Loading…
Reference in New Issue