Add CMake to the CI matrix
This commit is contained in:
parent
d1c06cd3e9
commit
e701bfd596
4 changed files with 23 additions and 1 deletions
|
@ -7,10 +7,12 @@ apt-get install -qq \
|
|||
build-essential \
|
||||
check \
|
||||
clang \
|
||||
cmake \
|
||||
graphviz-dev \
|
||||
libjemalloc-dev \
|
||||
libpcre3-dev \
|
||||
libtool \
|
||||
ninja-build \
|
||||
pkg-config
|
||||
|
||||
if [ x$COVERALLS == xyes ]; then
|
||||
|
|
8
.travis-ci/script-cmake.sh
Executable file
8
.travis-ci/script-cmake.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -ev
|
||||
|
||||
mkdir build && cd build
|
||||
cmake -GNinja ..
|
||||
ninja -v
|
||||
ctest
|
14
.travis.yml
14
.travis.yml
|
@ -11,6 +11,7 @@ matrix:
|
|||
include:
|
||||
- compiler: gcc
|
||||
env:
|
||||
- TYPE=autotools
|
||||
- CONFIGURE_OPTION='--enable-debug --enable-gcov --with-malloc=jemalloc'
|
||||
- COVERALLS=yes
|
||||
- VALGRIND=no
|
||||
|
@ -19,6 +20,7 @@ matrix:
|
|||
- CXX=g++
|
||||
- compiler: gcc
|
||||
env:
|
||||
- TYPE=autotools
|
||||
- CONFIGURE_OPTION='--enable-debug --enable-gcov'
|
||||
- COVERALLS=yes
|
||||
- VALGRIND=yes
|
||||
|
@ -27,12 +29,22 @@ matrix:
|
|||
- CXX=g++
|
||||
- compiler: clang
|
||||
env:
|
||||
- TYPE=autotools
|
||||
- CONFIGURE_OPTION='--enable-debug --enable-gcov'
|
||||
- COVERALLS=yes
|
||||
- VALGRIND=yes
|
||||
- DEBUG=yes
|
||||
- CC=clang
|
||||
- CXX=clang++
|
||||
- compiler: gcc
|
||||
env:
|
||||
- TYPE=cmake
|
||||
- CONFIGURE_OPTION='--enable-debug --enable-gcov'
|
||||
- COVERALLS=yes
|
||||
- VALGRIND=yes
|
||||
- DEBUG=yes
|
||||
- CC=gcc
|
||||
- CXX=g++
|
||||
|
||||
before_install:
|
||||
- docker run -d
|
||||
|
@ -52,7 +64,7 @@ install:
|
|||
- docker exec -t build bash -c "cd /travis && .travis-ci/install.sh"
|
||||
|
||||
script:
|
||||
- docker exec -t build bash -c "cd /travis && .travis-ci/script.sh"
|
||||
- docker exec -t build bash -c "cd /travis && .travis-ci/script-$TYPE.sh"
|
||||
|
||||
after_success:
|
||||
- docker exec -t build bash -c "cd /travis && .travis-ci/after_success.sh"
|
||||
|
|
Loading…
Reference in a new issue