mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 21:30:31 +01:00
Build my own gtest.
Since the bundled version doesn't have a shared library.
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -1,10 +1,19 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
dist: bionic
|
dist: bionic
|
||||||
|
sudo: true
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- 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
|
# Custom directory, for the correct year
|
||||||
before_script:
|
before_script:
|
||||||
- cd 2019
|
- cd 2019
|
||||||
@@ -18,3 +27,7 @@ addons:
|
|||||||
- libboost-filesystem-dev
|
- libboost-filesystem-dev
|
||||||
- libboost-program-options-dev
|
- libboost-program-options-dev
|
||||||
- libgtest-dev
|
- libgtest-dev
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- /home/travis/gtest_build
|
||||||
|
|||||||
Reference in New Issue
Block a user