From 9d6f8c74418bda8b8c3ab36ac67bb99a600055d5 Mon Sep 17 00:00:00 2001 From: Stephen McDowell Date: Mon, 7 Oct 2019 07:51:03 -0400 Subject: [PATCH] install CMake >= 3.12 on macOS [skip appveyor] --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9b37ebfd3..1bab8852f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -81,6 +81,16 @@ matrix: env: - BUILD_SHARED_LIBS=OFF - CFLAGS=-Werror + +install: + # Travis CI macOS image ships with CMake 3.11.3, need 3.12 or later. + # Avoid `brew`, takes too long. + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then + virtualenv venv + source venv/bin/activate + pip install cmake + fi + script: - if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then echo Trailing whitespace found, aborting;