Travis cmake tweaks

Reduce amount of testing.
Display cmake version used.
This commit is contained in:
William S Fulton 2021-03-02 13:34:07 +00:00
commit bbe9807d86

View file

@ -5,10 +5,6 @@ matrix:
os: linux
env: SWIGLANG=
dist: xenial
- compiler: clang
os: linux
env: SWIGLANG= BUILDSYSTEM=cmake
dist: xenial
- compiler: gcc
os: linux
env: SWIGLANG=
@ -350,9 +346,6 @@ 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
@ -447,7 +440,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 && CXXFLAGS="-Wall -Wextra -Werror" CFLAGS="-Wall -Wextra -Werror" cmake -DCMAKE_INSTALL_PREFIX=~/.local ../.. && make install && ctest --output-on-failure -V && exit 0; fi
- if test "$BUILDSYSTEM" = "cmake"; then cmake --version && mkdir -p build/build && cd build/build && CXXFLAGS="-Wall -Wextra -Werror" CFLAGS="-Wall -Wextra -Werror" 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