X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/66e1914beb3c8290b6537ec9aaa5c80be63f75e0..e5e814b3dba2cde3c99e62fc9cb5c425458c6f5f:/.travis.yml diff --git a/.travis.yml b/.travis.yml index 68dba8a5..38e41bfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,51 +1,46 @@ -# Travis-CI Build for charybdis +# Travis-CI Build for solanum # see travis-ci.org for details language: c # Use the faster container-based infrastructure. +dist: bionic sudo: false +branches: + only: + - main + matrix: include: - os: linux - compiler: gcc + compiler: gcc-7 addons: apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['gcc-4.8', 'automake', 'autoconf', 'libtool'] - env: COMPILER=gcc-4.8 + packages: ['gcc-7', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev'] - os: linux - compiler: gcc + compiler: gcc-8 addons: apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['gcc-4.9', 'automake', 'autoconf', 'libtool'] - env: COMPILER=gcc-4.9 + packages: ['gcc-8', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev'] - os: linux - compiler: gcc + compiler: clang-7 addons: apt: - sources: ['ubuntu-toolchain-r-test'] - packages: ['gcc-5', 'automake', 'autoconf', 'libtool'] - env: COMPILER=gcc-5 + packages: ['clang-7', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev'] - os: linux - compiler: clang + compiler: clang-8 addons: apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7'] - packages: ['clang-3.7', 'automake', 'autoconf', 'libtool'] - env: COMPILER=clang-3.7 + packages: ['clang-8', 'automake', 'autoconf', 'libtool', 'shtool', 'libsqlite3-dev', 'python-sphinx', 'texinfo', 'libhyperscan-dev'] - os: osx + osx_image: xcode7.3 compiler: clang - env: COMPILER=clang LIBTOOLIZE=glibtoolize - - -osx_image: xcode7.3 + env: LIBTOOLIZE=glibtoolize cache: apt: @@ -53,6 +48,9 @@ cache: script: - bash autogen.sh - - CC=$COMPILER ./configure + - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then CFLAGS=\"-Werror -Wno-unused-value -Wno-unused-parameter\" ./configure --with-shared-sqlite --enable-assert=hard --enable-warnings; fi" + - "if [ ${TRAVIS_OS_NAME} = 'osx' ]; then ./configure --with-shared-sqlite; fi" - make -j4 + - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then make check; fi" - make install + - "if [ ${TRAVIS_OS_NAME} != 'osx' ]; then make -C doc/oper-guide html man info; fi"