Skip to content

Commit

Permalink
CI install benchmark from a fixed release (1.5.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Jan 17, 2020
1 parent 665c9be commit 1e60705
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions ci/travis-benchmark-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,39 @@ set -e
echo "Git version:"
git --version

# echo "installing gtest from sources"
# git clone https://github.com/google/googletest.git
# cd googletest
# curl -L -O https://github.com/google/googletest/archive/release-1.10.0.tar.gz
# tar xvf release-1.10.0.tar.gz
# cd googletest-release-1.10.0
# mkdir build
# cd build
# cmake ..
# cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
# make
# cd ../
# sudo cp -r googletest/include/gtest /usr/local/include
# sudo cp build/googlemock/gtest/lib*.a /usr/local/lib
# sudo cp build/googlemock/lib*.a /usr/local/lib
# cd ../
# rm -rf googletest
# sudo make install
# cd ../../
# rm -rf googletest-release-1.10.0

echo "installing benchmark from sources"
git clone https://github.com/google/benchmark.git googlebenchmark
cd googlebenchmark

echo "installing google test from sources"
curl -L -O https://github.com/google/googletest/archive/release-1.10.0.tar.gz
tar xvf release-1.10.0.tar.gz
cd googletest-release-1.10.0
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
make
sudo make install
cd ../../
rm -rf googlebenchmark
rm -rf googletest-release-1.10.0

echo "installing benchmark from sources"
curl -L -O https://github.com/google/benchmark/archive/v1.5.0.tar.gz
tar xvf v1.5.0.tar.gz
cd benchmark-1.5.0
mkdir build
cd build
#cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF
make
sudo make install
cd ../../
rm -rf benchmark-1.5.0

0 comments on commit 1e60705

Please sign in to comment.