summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMichel Zou <xantares09@hotmail.com>2017-10-12 17:23:07 +0200
committerMichel Zou <xantares09@hotmail.com>2021-02-25 10:50:41 +0100
commit72aefd2207b677a794f8129eeaeca944ce204487 (patch)
tree98308c444cd02cf111ae8cbb3795a48a80803f0d /.travis.yml
parent2981eda00da91b7992d669a93d186efb9e28d48e (diff)
downloadswig-72aefd2207b677a794f8129eeaeca944ce204487.tar.gz
Enable cmake build in CI
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 15 insertions, 0 deletions
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