summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2018-04-27 18:27:06 (GMT)
committerScott Graham <scottmg@chromium.org>2018-05-01 16:34:13 (GMT)
commit95ec42d95f051633a934f105e52d693aa9ae9d3a (patch)
tree1054445a8c6c4b7b7171eb447590c356962e018d /ci
parentdc043e1ca6bd509a92452ed54e817b6979869372 (diff)
downloadgoogletest-95ec42d95f051633a934f105e52d693aa9ae9d3a.zip
googletest-95ec42d95f051633a934f105e52d693aa9ae9d3a.tar.gz
googletest-95ec42d95f051633a934f105e52d693aa9ae9d3a.tar.bz2
Add no-exception and no-rtti to build matrixrefs/pull/1589/head
Diffstat (limited to 'ci')
-rwxr-xr-xci/travis.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ci/travis.sh b/ci/travis.sh
index 2dda68f..9ff3bad 100755
--- a/ci/travis.sh
+++ b/ci/travis.sh
@@ -24,11 +24,19 @@ export MAKEFLAGS
env | sort
+# Set default values to OFF for these variables if not specified.
+: "${NO_EXCEPTION:=OFF}"
+: "${NO_RTTI:=OFF}"
+: "${COMPILER_IS_GNUCXX:=OFF}"
+
mkdir build || true
cd build
cmake -Dgtest_build_samples=ON \
-Dgtest_build_tests=ON \
-Dgmock_build_tests=ON \
+ -Dcxx_no_exception=$NO_EXCEPTION \
+ -Dcxx_no_rtti=$NO_RTTI \
+ -DCMAKE_COMPILER_IS_GNUCXX=$COMPILER_IS_GNUCXX \
-DCMAKE_CXX_FLAGS=$CXX_FLAGS \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
..