summaryrefslogtreecommitdiffstats
path: root/src/googletest/travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/googletest/travis.sh')
-rwxr-xr-xsrc/googletest/travis.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/googletest/travis.sh b/src/googletest/travis.sh
new file mode 100755
index 00000000..20fe3e39
--- /dev/null
+++ b/src/googletest/travis.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env sh
+set -evx
+env | sort
+
+mkdir build || true
+mkdir build/$GTEST_TARGET || true
+cd build/$GTEST_TARGET
+cmake -Dgtest_build_samples=ON \
+ -Dgmock_build_samples=ON \
+ -Dgtest_build_tests=ON \
+ -Dgmock_build_tests=ON \
+ -DCMAKE_CXX_FLAGS=$CXX_FLAGS \
+ ../../$GTEST_TARGET
+make
+make test