Add dummy googletest

Uses the built in cmake -Dtest=ON

It should download googletest on the fly if needed.

Adds a new make target, `make test`

Ref #167
This commit is contained in:
Gavin Bisesi 2015-09-27 23:39:02 -04:00 committed by Fabio Bas
parent cd02df78a1
commit 3ebe42c400
6 changed files with 75 additions and 6 deletions

View file

@ -7,15 +7,19 @@ if [[ $TRAVIS_OS_NAME == "osx" ]] ; then
else
brew install qt5 protobuf libgcrypt > /dev/null
fi
brew unlink cmake
brew upgrade cmake
else
if (( QT4 )); then
sudo apt-get update -qq
sudo apt-get install -y qtmobility-dev libprotobuf-dev protobuf-compiler libqt4-dev
sudo apt-get install -y qtmobility-dev libqt4-dev
else
sudo add-apt-repository -y ppa:george-edison55/precise-backports
sudo add-apt-repository -y ppa:beineri/opt-qt521
sudo add-apt-repository -y ppa:kalakris/cmake
sudo apt-get update -qq
sudo apt-get install -y libprotobuf-dev protobuf-compiler cmake libsqlite3-dev\
sudo apt-get install -y libsqlite3-dev\
qt52base qt52webkit qt52tools qt52svg qt52multimedia
fi
sudo apt-get install -y cmake libgtest-dev libprotobuf-dev protobuf-compiler
cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -
fi