Lines Matching +full:travis +full:- +full:install
4 # This is called by `.travis.yml` via Travis CI.
5 # Travis supplies $TRAVIS_OS_NAME.
6 # http://docs.travis-ci.com/user/multi-os/
7 # Our .travis.yml also defines:
9 # - BUILD_TYPE=Release/Debug
10 # - LIB_TYPE=static/shared
13 # - DESTDIR <- used for setting the install prefix
14 # - BUILD_TOOL=["Unix Makefile"|"Ninja"]
15 # - BUILDNAME <- how to identify this build on the dashboard
16 # - DO_MemCheck <- if set, try to use valgrind
17 # - DO_Coverage <- if set, try to do dashboard coverage testing
35 if [ ${env_set} -eq 0 ]; then
49 exit -1
56 # -e: fail on error
57 # -v: show commands
58 # -x: show expanded commands
59 set -vex
64 cmake --version
67 ${CXX} --version
75 CTEST_TESTING_OPTION="-D ExperimentalTest"
76 # - DO_MemCheck <- if set, try to use valgrind
78 valgrind --version
79 CTEST_TESTING_OPTION="-D ExperimentalMemCheck"
81 # - DO_Coverage <- if set, try to do dashboard coverage testing
83 export CXXFLAGS="-fprofile-arcs -ftest-coverage"
84 export LDFLAGS="-fprofile-arcs -ftest-coverage"
85 CTEST_TESTING_OPTION="-D ExperimentalTest -D ExperimentalCoverage"
86 #gcov --version
95 ninja --version
101 _BUILD_DIR_NAME="build-cmake_${BUILD_TYPE}_${LIB_TYPE}_${_COMPILER_NAME}_${_BUILD_EXE}"
102 mkdir -p ${_BUILD_DIR_NAME}
105 _HOSTNAME=`hostname -s`
109 -G "${BUILD_TOOL}" \
110 -DBUILDNAME:STRING="${BUILDNAME}" \
111 -DCMAKE_CXX_COMPILER:PATH=${CXX} \
112 -DCMAKE_BUILD_TYPE:STRING=${BUILD_TYPE} \
113 -DBUILD_SHARED_LIBS:BOOL=${_CMAKE_BUILD_SHARED_LIBS} \
114 -DCMAKE_INSTALL_PREFIX:PATH=${DESTDIR} \
117 …ctest -C ${BUILD_TYPE} -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild ${CTEST_…
119 cmake --build . --config ${BUILD_TYPE} --target install
122 ${_BUILD_EXE} install
124 cd -
129 rm -r "${_BUILD_DIR_NAME}"