travis googlemock as well
This commit is contained in:
parent
12a8c19167
commit
df688319de
@ -29,6 +29,7 @@ addons:
|
|||||||
- valgrind
|
- valgrind
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
- osx
|
||||||
language: cpp
|
language: cpp
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
|
17
travis.sh
17
travis.sh
@ -18,14 +18,17 @@ set -vex
|
|||||||
env | sort
|
env | sort
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
|
||||||
cmake ../googletest
|
|
||||||
make
|
|
||||||
|
|
||||||
# Python is not available in Travis for osx.
|
mkdir build/googletest
|
||||||
# https://github.com/travis-ci/travis-ci/issues/2320
|
( cd build/googletest && cmake ../../googletest )
|
||||||
if [ "$TRAVIS_OS_NAME" != "osx" ]
|
if [ "$TRAVIS_OS_NAME" != "osx" ]
|
||||||
then
|
then
|
||||||
make
|
( cd build/googletest && make )
|
||||||
# valgrind --error-exitcode=42 --leak-check=full ./src/test_lib_json/jsoncpp_test
|
fi
|
||||||
|
|
||||||
|
mkdir build/googlemock
|
||||||
|
( cd build/googlemock && cmake ../../googlemock )
|
||||||
|
if [ "$TRAVIS_OS_NAME" != "osx" ]
|
||||||
|
then
|
||||||
|
( cd build/googlemock && make )
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user