summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2021-03-01 23:44:01 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2021-03-01 23:44:01 +0000
commit5329fdf7a19e77ebf3c5f3dad2a36876451ff30a (patch)
treee909a812a0ff180408d829e562aadaaced32a459 /.travis.yml
parentbff805dae562bb64a0d6322808808c4c5a68eeb0 (diff)
parent4ba9d9a8ec69d69832155ad599066eed13b97e09 (diff)
downloadswig-5329fdf7a19e77ebf3c5f3dad2a36876451ff30a.tar.gz
Merge branch 'cmake-simple'
* cmake-simple: CMake test, run -swiglib Misc fixes Enable cmake build in CI Initial CMake configuration.
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 90a59eb2c..3ed261b6e 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
@@ -433,6 +447,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