summary refs log tree commit diff
path: root/.ci/linux/gtest.sh
blob: 8dd7084c1957d8f62c5a83973d14c2675feb0607 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

set -evx

sudo apt-get -qq update
sudo apt-get install -y libgtest-dev
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
tar xf release-1.8.0.tar.gz
cd googletest-release-1.8.0

cmake -DBUILD_SHARED_LIBS=ON .
make
sudo cp -a googletest/include/gtest /usr/include
sudo cp -a googlemock/gtest/*.so /usr/lib/

sudo ldconfig -v | grep gtest

cd $TRAVIS_BUILD_DIR