break out test and mock in travis

This commit is contained in:
Billy Donahue 2015-08-31 10:29:11 -04:00
parent a48c4e5e36
commit fefba42a05
2 changed files with 9 additions and 9 deletions

View File

@ -36,8 +36,10 @@ compiler:
script: ./travis.sh
env:
matrix:
- SHARED_LIB=ON STATIC_LIB=ON CMAKE_PKG=ON BUILD_TYPE=release VERBOSE_MAKE=false
- SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug VERBOSE_MAKE=true VERBOSE
- GTEST_TARGET=googletest SHARED_LIB=ON STATIC_LIB=ON CMAKE_PKG=ON BUILD_TYPE=release VERBOSE_MAKE=false
- GTEST_TARGET=googletest SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug VERBOSE_MAKE=true VERBOSE
- GTEST_TARGET=googlemock SHARED_LIB=ON STATIC_LIB=ON CMAKE_PKG=ON BUILD_TYPE=release VERBOSE_MAKE=false
- GTEST_TARGET=googlemock SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug VERBOSE_MAKE=true VERBOSE
notifications:
email: false
sudo: false

View File

@ -1,11 +1,9 @@
#!/usr/bin/env sh
set -evx
env | sort
t = $GTEST_TARGET
mkdir build
for d in googletest googlemock
do
( mkdir build/$d &&
cd build/$d &&
cmake ../../$d &&
make)
done
mkdir build/$t
cd build/$t
cmake ../../$t
make