2015-04-19 03:24:46 +02:00
|
|
|
# Build matrix / environment variables are explained on:
|
2013-05-09 00:04:57 +02:00
|
|
|
# http://about.travis-ci.org/docs/user/build-configuration/
|
2019-06-25 23:27:26 +02:00
|
|
|
# This file can be validated on: http://www.yamllint.com/
|
|
|
|
# Or using the Ruby based travel command line tool:
|
|
|
|
# gem install travis --no-rdoc --no-ri
|
|
|
|
# travis lint .travis.yml
|
2019-01-11 22:13:10 +01:00
|
|
|
language: cpp
|
|
|
|
sudo: false
|
2015-07-11 21:06:18 +02:00
|
|
|
addons:
|
2019-01-11 22:13:10 +01:00
|
|
|
homebrew:
|
2019-01-12 15:54:50 +01:00
|
|
|
packages:
|
2019-10-11 20:19:00 +02:00
|
|
|
- clang-format
|
2019-01-12 15:54:50 +01:00
|
|
|
- meson
|
|
|
|
- ninja
|
2019-01-11 22:13:10 +01:00
|
|
|
update: false # do not update homebrew by default
|
2015-07-11 21:06:18 +02:00
|
|
|
apt:
|
|
|
|
sources:
|
2019-06-25 23:27:26 +02:00
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-xenial-8
|
2015-07-11 21:06:18 +02:00
|
|
|
packages:
|
2019-10-11 20:19:00 +02:00
|
|
|
- clang-format-8
|
2019-06-25 23:27:26 +02:00
|
|
|
- clang-8
|
2015-07-11 21:09:52 +02:00
|
|
|
- valgrind
|
2015-04-19 03:24:46 +02:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- os: osx
|
|
|
|
include:
|
2019-01-12 19:32:15 +01:00
|
|
|
- name: Mac clang meson static release testing
|
|
|
|
os: osx
|
2019-10-11 20:19:00 +02:00
|
|
|
osx_image: xcode11
|
2015-04-19 03:24:46 +02:00
|
|
|
compiler: clang
|
2019-06-25 23:27:26 +02:00
|
|
|
env:
|
|
|
|
CXX="clang++"
|
|
|
|
CC="clang"
|
2019-01-12 19:32:15 +01:00
|
|
|
LIB_TYPE=static
|
|
|
|
BUILD_TYPE=release
|
|
|
|
script: ./.travis_scripts/meson_builder.sh
|
2019-06-25 23:48:40 +02:00
|
|
|
- name: Linux xenial clang meson static release testing
|
2019-01-12 19:32:15 +01:00
|
|
|
os: linux
|
2019-06-25 23:27:26 +02:00
|
|
|
dist: xenial
|
2015-04-19 03:24:46 +02:00
|
|
|
compiler: clang
|
2019-06-25 23:27:26 +02:00
|
|
|
env:
|
|
|
|
CXX="clang++"
|
|
|
|
CC="clang"
|
2019-01-12 19:32:15 +01:00
|
|
|
LIB_TYPE=static
|
|
|
|
BUILD_TYPE=release
|
|
|
|
# before_install and install steps only needed for linux meson builds
|
|
|
|
before_install:
|
|
|
|
- source ./.travis_scripts/travis.before_install.${TRAVIS_OS_NAME}.sh
|
|
|
|
install:
|
|
|
|
- source ./.travis_scripts/travis.install.${TRAVIS_OS_NAME}.sh
|
|
|
|
script: ./.travis_scripts/meson_builder.sh
|
2019-06-25 23:48:40 +02:00
|
|
|
- name: Linux xenial gcc cmake coverage
|
2019-01-12 19:32:15 +01:00
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
compiler: gcc
|
2019-06-25 23:27:26 +02:00
|
|
|
env:
|
2019-01-12 19:32:15 +01:00
|
|
|
CXX=g++
|
|
|
|
CC=gcc
|
|
|
|
DO_Coverage=ON
|
|
|
|
BUILD_TOOL="Unix Makefiles"
|
2019-06-25 23:27:26 +02:00
|
|
|
BUILD_TYPE=Debug
|
|
|
|
LIB_TYPE=shared
|
2019-01-12 19:32:15 +01:00
|
|
|
DESTDIR=/tmp/cmake_json_cpp
|
2019-10-17 19:46:41 +02:00
|
|
|
before_install:
|
|
|
|
- pip install --user cpp-coveralls
|
2019-01-12 19:32:15 +01:00
|
|
|
script: ./.travis_scripts/cmake_builder.sh
|
2019-10-17 19:46:41 +02:00
|
|
|
after_success:
|
|
|
|
- coveralls --include src/lib_json --include include
|
2013-05-08 23:23:52 +02:00
|
|
|
notifications:
|
2015-07-12 16:53:40 +02:00
|
|
|
email: false
|