👷 Add cmake logic to Travis config
- get CMake for XCode 8.1 image
This commit is contained in:
parent
85ce4d7b53
commit
5436407b7e
2 changed files with 13 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,6 +7,7 @@ fuzz-testing
|
||||||
*.gcno
|
*.gcno
|
||||||
*.gcda
|
*.gcda
|
||||||
|
|
||||||
|
build
|
||||||
working
|
working
|
||||||
|
|
||||||
doc/xml
|
doc/xml
|
||||||
|
|
13
.travis.yml
13
.travis.yml
|
@ -228,6 +228,14 @@ install:
|
||||||
# make sure CXX is correctly set
|
# make sure CXX is correctly set
|
||||||
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
|
- 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
|
# install LLVM/clang when LLVM_VERSION is set
|
||||||
- |
|
- |
|
||||||
if [[ "${LLVM_VERSION}" != "" ]]; then
|
if [[ "${LLVM_VERSION}" != "" ]]; then
|
||||||
|
@ -266,7 +274,10 @@ script:
|
||||||
- $CXX --version
|
- $CXX --version
|
||||||
|
|
||||||
# compile and execute unit tests
|
# 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)
|
# check if homebrew works (only checks develop branch)
|
||||||
- if [ `which brew` ]; then
|
- if [ `which brew` ]; then
|
||||||
|
|
Loading…
Reference in a new issue