2018-07-08 17:26:57 +00:00
|
|
|
#!/bin/sh -e
|
2014-10-04 11:23:23 +00:00
|
|
|
|
2016-01-21 08:22:42 +00:00
|
|
|
free -m
|
2018-07-08 17:26:57 +00:00
|
|
|
|
|
|
|
env GENERATOR='Unix Makefiles' CONFIGURATION=Release CI/build_googletest.sh
|
|
|
|
GOOGLETEST_DIR="$(pwd)/googletest/build"
|
|
|
|
|
2014-10-04 11:23:23 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-03-17 13:45:31 +00:00
|
|
|
export CODE_COVERAGE=1
|
|
|
|
if [ "${CC}" = "clang" ]; then export CODE_COVERAGE=0; fi
|
2018-07-08 17:26:57 +00:00
|
|
|
${ANALYZE}cmake \
|
|
|
|
-DBUILD_WITH_CODE_COVERAGE=${CODE_COVERAGE} \
|
|
|
|
-DBUILD_UNITTESTS=1 \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBINDIR=/usr/games \
|
|
|
|
-DCMAKE_BUILD_TYPE="None" \
|
|
|
|
-DUSE_SYSTEM_TINYXML=TRUE \
|
|
|
|
-DGTEST_ROOT="${GOOGLETEST_DIR}" \
|
|
|
|
-DGMOCK_ROOT="${GOOGLETEST_DIR}" \
|
|
|
|
..
|