From 72aefd2207b677a794f8129eeaeca944ce204487 Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Thu, 12 Oct 2017 17:23:07 +0200 Subject: Enable cmake build in CI --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 6572bb74b..e8b65d0d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,10 +5,18 @@ matrix: os: linux env: SWIGLANG= dist: xenial + - compiler: clang + os: linux + env: SWIGLANG= BUILDSYSTEM=cmake + dist: xenial - compiler: gcc os: linux env: SWIGLANG= dist: xenial + - compiler: gcc + os: linux + env: SWIGLANG= BUILDSYSTEM=cmake + dist: xenial - os: linux env: SWIGLANG= GCC=4.4 dist: xenial @@ -342,6 +350,12 @@ matrix: os: osx osx_image: xcode12.2 env: SWIGLANG= + - compiler: gcc + os: osx + env: SWIGLANG= BUILDSYSTEM=cmake + - compiler: clang + os: osx + env: SWIGLANG= BUILDSYSTEM=cmake - compiler: clang os: osx osx_image: xcode12.2 @@ -439,6 +453,7 @@ install: - if test "$TRAVIS_OS_NAME" = "osx"; then source Tools/travis-osx-install.sh; fi - ls -la $(which $CC) $(which $CXX) && $CC --version && $CXX --version script: + - if test "$BUILDSYSTEM" = "cmake"; then mkdir -p build/build && cd build/build && cmake -DCMAKE_INSTALL_PREFIX=~/.local ../.. && make install && ctest --output-on-failure -V && exit 0; fi - echo 'Configuring...' && echo -en 'travis_fold:start:script.1\\r' - if test -n "$CPP11"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++11 -Wall -Wextra" "CFLAGS=-std=c11 -Wall -Wextra") && export CSTD=c11 && export CPPSTD=c++11; fi - if test -n "$CPP14"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++14 -Wall -Wextra" "CFLAGS=-std=c11 -Wall -Wextra") && export CSTD=c11 && export CPPSTD=c++14; fi -- cgit v1.2.1