From 5436407b7e7d1de9381bbabab5c5a88f66f36578 Mon Sep 17 00:00:00 2001 From: Tushar Maheshwari Date: Sun, 12 Feb 2017 19:40:40 +0530 Subject: [PATCH] :construction_worker: Add cmake logic to Travis config - get CMake for XCode 8.1 image --- .gitignore | 1 + .travis.yml | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6e15abc4..69a81cbd 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ fuzz-testing *.gcno *.gcda +build working doc/xml diff --git a/.travis.yml b/.travis.yml index ef5c6143..c3cba69e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -228,6 +228,14 @@ install: # make sure CXX is correctly set - if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi + # get CMake (only for systems with brew - macOS) + - | + if [[ !(-x $(which cmake)) && (-x $(which brew)) ]]; then + brew update + brew install cmake + cmake --version + fi + # install LLVM/clang when LLVM_VERSION is set - | if [[ "${LLVM_VERSION}" != "" ]]; then @@ -266,7 +274,10 @@ script: - $CXX --version # compile and execute unit tests - - make check + - mkdir -p build && cd build + - cmake .. && cmake --build . --config Release -- -j4 + - ctest -C Release -V + - cd .. # check if homebrew works (only checks develop branch) - if [ `which brew` ]; then