use c++11 std::align from <memory> (#2026)
* use c++11 std::align from <memory>
* for Ubuntu, use gcc5 instead of 4.8
* use travis to set gcc to 5
eval
and sudo
* use eval in .travis.yml
* use gcc-8
* replace precise with trusty llvm toolchain, because we have been using trusty for awhile now
* push things to matrix, so we can support multiple releases if we want
* we should not be allowing for failures, we are ready to start trusting clang and its analyzer
* scan-build was pushed to another package
* use gcc-8 still but wrap in scan-build
* travis.yml cleanup, have output of scripts go to stdout, make search for substring a regex
use double []
fix missing ,
use bash to use regex
black spaces matter
* set human readable names for our various builds, split out our static analysis between openmw and openmw-cs
* test if not set, then set otherwise ignore
* use quotes
* do not eval it, set it in travis env
* no more &&
* what does clang7 have to say?
* use sourceline for now
* use clang-7 instead of clang-7.0
* yes, llvm-toolchain-trusty-7 not llvm-toolchain-trusty-7.0
* for static analysis, openmw is compiled and checked on its own while openmw-cs is build with all the rest. this might change in the future.
and actually do it the other way around
6 years ago
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
free -m
|
|
|
|
|
|
|
|
env GENERATOR='Unix Makefiles' CONFIGURATION=Release CI/build_googletest.sh
|
|
|
|
GOOGLETEST_DIR="$(pwd)/googletest/build"
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
# Set up compilers
|
|
|
|
if [ ! -z "${MATRIX_CC}" ]; then
|
|
|
|
eval "${MATRIX_CC}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
export RAKNET_ROOT=~/CrabNet
|
|
|
|
|
|
|
|
export CODE_COVERAGE=1
|
|
|
|
|
use c++11 std::align from <memory> (#2026)
* use c++11 std::align from <memory>
* for Ubuntu, use gcc5 instead of 4.8
* use travis to set gcc to 5
eval
and sudo
* use eval in .travis.yml
* use gcc-8
* replace precise with trusty llvm toolchain, because we have been using trusty for awhile now
* push things to matrix, so we can support multiple releases if we want
* we should not be allowing for failures, we are ready to start trusting clang and its analyzer
* scan-build was pushed to another package
* use gcc-8 still but wrap in scan-build
* travis.yml cleanup, have output of scripts go to stdout, make search for substring a regex
use double []
fix missing ,
use bash to use regex
black spaces matter
* set human readable names for our various builds, split out our static analysis between openmw and openmw-cs
* test if not set, then set otherwise ignore
* use quotes
* do not eval it, set it in travis env
* no more &&
* what does clang7 have to say?
* use sourceline for now
* use clang-7 instead of clang-7.0
* yes, llvm-toolchain-trusty-7 not llvm-toolchain-trusty-7.0
* for static analysis, openmw is compiled and checked on its own while openmw-cs is build with all the rest. this might change in the future.
and actually do it the other way around
6 years ago
|
|
|
if [[ "${CC}" =~ "clang" ]]; then export CODE_COVERAGE=0; fi
|
|
|
|
if [[ -z "${BUILD_OPENMW}" ]]; then export BUILD_OPENMW=ON; fi
|
|
|
|
if [[ -z "${BUILD_OPENMW_CS}" ]]; then export BUILD_OPENMW_CS=ON; fi
|
|
|
|
|
|
|
|
${ANALYZE} cmake .. \
|
|
|
|
-DCMAKE_C_COMPILER="${CC}" \
|
|
|
|
-DCMAKE_CXX_COMPILER="${CXX}" \
|
|
|
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
|
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
use c++11 std::align from <memory> (#2026)
* use c++11 std::align from <memory>
* for Ubuntu, use gcc5 instead of 4.8
* use travis to set gcc to 5
eval
and sudo
* use eval in .travis.yml
* use gcc-8
* replace precise with trusty llvm toolchain, because we have been using trusty for awhile now
* push things to matrix, so we can support multiple releases if we want
* we should not be allowing for failures, we are ready to start trusting clang and its analyzer
* scan-build was pushed to another package
* use gcc-8 still but wrap in scan-build
* travis.yml cleanup, have output of scripts go to stdout, make search for substring a regex
use double []
fix missing ,
use bash to use regex
black spaces matter
* set human readable names for our various builds, split out our static analysis between openmw and openmw-cs
* test if not set, then set otherwise ignore
* use quotes
* do not eval it, set it in travis env
* no more &&
* what does clang7 have to say?
* use sourceline for now
* use clang-7 instead of clang-7.0
* yes, llvm-toolchain-trusty-7 not llvm-toolchain-trusty-7.0
* for static analysis, openmw is compiled and checked on its own while openmw-cs is build with all the rest. this might change in the future.
and actually do it the other way around
6 years ago
|
|
|
-DBUILD_OPENMW=${BUILD_OPENMW} \
|
|
|
|
-DBUILD_OPENCS=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_LAUNCHER=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_BSATOOL=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_ESMTOOL=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_MWINIIMPORTER=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_ESSIMPORTER=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_WIZARD=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_NIFTEST=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_MYGUI_PLUGIN=${BUILD_OPENMW_CS} \
|
|
|
|
-DBUILD_OPENMW_MP=ON \
|
|
|
|
-DBUILD_BROWSER=ON \
|
|
|
|
-DBUILD_MASTER=ON \
|
|
|
|
-DBUILD_WITH_CODE_COVERAGE=${CODE_COVERAGE} \
|
|
|
|
-DBUILD_UNITTESTS=1 \
|
|
|
|
-DUSE_SYSTEM_TINYXML=1 \
|
|
|
|
-DDESIRED_QT_VERSION=5 \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBINDIR=/usr/games \
|
|
|
|
-DCMAKE_BUILD_TYPE="None" \
|
|
|
|
-DUSE_SYSTEM_TINYXML=TRUE \
|
|
|
|
-DGTEST_ROOT="${GOOGLETEST_DIR}" \
|
|
|
|
-DGMOCK_ROOT="${GOOGLETEST_DIR}" \
|
|
|
|
-DRakNet_LIBRARY_RELEASE=~/CrabNet/lib/libRakNetLibStatic.a \
|
|
|
|
-DRakNet_LIBRARY_DEBUG=~/CrabNet/lib/libRakNetLibStatic.a
|