summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml46
1 files changed, 41 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 25b205f..bb42803 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -107,6 +107,10 @@ jobs:
env:
- CFLAGS_EXTRA="-O3"
- TESTS_CUSTOM_RUN=true
+ - arch: arm64
+ compiler: gcc
+ env:
+ - CMAKE_CONFIG="Release"
- arch: ppc64le
compiler: clang
- arch: ppc64le
@@ -148,6 +152,16 @@ jobs:
env:
- CFLAGS_EXTRA="-O3"
- TESTS_CUSTOM_RUN=true
+ - arch: ppc64le
+ compiler: clang
+ env:
+ - CMAKE_CONFIG="Debug"
+ - CMAKE_OPTIONS="-DBUILD_SHARED_LIBS=ON -Denable_assertions=ON -Denable_docs=OFF"
+ - arch: ppc64le
+ compiler: gcc
+ env:
+ - CMAKE_CONFIG="Release"
+ - CMAKE_OPTIONS="-Denable_assertions=ON -Denable_atomic_intrinsics=OFF"
- arch: s390x
compiler: clang
- arch: s390x
@@ -177,6 +191,18 @@ jobs:
env:
- CFLAGS_EXTRA="-O3"
- TESTS_CUSTOM_RUN=true
+ - os: freebsd
+ env:
+ - CMAKE_CONFIG="Release"
+ - CMAKE_OPTIONS="-Denable_gpl=OFF"
+ - compiler: clang
+ env:
+ - CMAKE_CONFIG="Debug"
+ - CMAKE_OPTIONS="-Denable_atomic_intrinsics=OFF"
+ - compiler: gcc
+ env:
+ - CMAKE_CONFIG="Release"
+ - CMAKE_OPTIONS="-DBUILD_SHARED_LIBS=ON -Dinstall_headers=OFF"
- compiler: clang
env:
- CFLAGS_EXTRA="-O3 -march=native -funsigned-char"
@@ -659,22 +685,32 @@ before_install:
- if [[ "$MAKEFILE_TARGET" == "" ]]; then MAKEFILE_TARGET=check; fi
install:
-- "./autogen.sh"
+- if [[ "$CMAKE_CONFIG" == "" ]]; then
+ ./autogen.sh;
+ fi
- if [[ "$REPORT_COVERAGE" == true ]]; then gem install coveralls-lcov; fi
script:
-- if [[ "$COVERITY_SCAN_BRANCH" != 1 ]]; then
+- if [[ "$CMAKE_CONFIG" == "" && "$COVERITY_SCAN_BRANCH" != 1 ]]; then
./configure $CONF_OPTIONS --enable-werror;
fi
-- if [[ "$CSA_CHECK" != true && "$CPPCHECK_ENABLE" == ""
- && "$COVERITY_SCAN_BRANCH" != 1 ]]; then
+- if [[ "$CSA_CHECK" != true && "$CMAKE_CONFIG" == ""
+ && "$CPPCHECK_ENABLE" == "" && "$COVERITY_SCAN_BRANCH" != 1 ]]; then
cat src/config.h;
fi
- if [[ "$CROSS_GCC_VER" != "" ]]; then CC=$CROSS_CC; fi
-- if [[ "$COVERITY_SCAN_BRANCH" != 1 ]]; then
+- if [[ "$CMAKE_CONFIG" == "" && "$COVERITY_SCAN_BRANCH" != 1 ]]; then
make -j $MAKEFILE_TARGET CC=$CC CFLAGS_EXTRA="$CFLAGS_EXTRA"
LDFLAGS="$LDFLAGS";
fi
+- if [[ "$CMAKE_CONFIG" != "" ]]; then
+ cmake $CMAKE_OPTIONS -Dbuild_tests=ON -Denable_werror=ON
+ -Werror=deprecated . &&
+ cmake --build . --config $CMAKE_CONFIG;
+ fi
+- if [[ "$CMAKE_CONFIG" != "" ]]; then
+ ctest --build-config $CMAKE_CONFIG -V;
+ fi
- if [[ "$CC_FOR_CHECK" != "" ]]; then
make check CC=$CC_FOR_CHECK CFLAGS_EXTRA="$CFLAGS_EXTRA";
fi