From c1dd06e65399a332f8ba09566e5d4fce4ddcd721 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sun, 22 Sep 2019 17:52:12 +0200 Subject: [PATCH] Build my own gtest. Since the bundled version doesn't have a shared library. --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index 643a033..1be8373 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,19 @@ language: cpp dist: bionic +sudo: true compiler: - clang - gcc +# Install GTest properly since it is only available as a static library. +install: + - mkdir gtest_build + - pushd gtest_build + - cmake /usr/src/gtest -DBUILD_SHARED_LIBS=true + - make && sudo make install + - popd + # Custom directory, for the correct year before_script: - cd 2019 @@ -18,3 +27,7 @@ addons: - libboost-filesystem-dev - libboost-program-options-dev - libgtest-dev + +cache: + directories: + - /home/travis/gtest_build