before_script.linux.sh 546 Bytes
Newer Older
bret curtis's avatar
bret curtis committed
1
#!/bin/sh -e
2

3
free -m
bret curtis's avatar
bret curtis committed
4 5 6 7

env GENERATOR='Unix Makefiles' CONFIGURATION=Release CI/build_googletest.sh
GOOGLETEST_DIR="$(pwd)/googletest/build"

8 9
mkdir build
cd build
10 11
export CODE_COVERAGE=1
if [ "${CC}" = "clang" ]; then export CODE_COVERAGE=0; fi
bret curtis's avatar
bret curtis committed
12 13 14 15 16 17 18 19 20 21
${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}" \
    ..