2015-04-18 18:24:46 -07:00
|
|
|
# Build matrix / environment variables are explained on:
|
2013-05-08 22:04:57 +00:00
|
|
|
# http://about.travis-ci.org/docs/user/build-configuration/
|
2019-06-25 14:27:26 -07: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 15:13:10 -06:00
|
|
|
language: cpp
|
|
|
|
sudo: false
|
2015-07-11 14:06:18 -05:00
|
|
|
addons:
|
2019-01-11 15:13:10 -06:00
|
|
|
homebrew:
|
2019-01-12 08:54:50 -06:00
|
|
|
packages:
|
2019-10-11 11:19:00 -07:00
|
|
|
- clang-format
|
2019-01-12 08:54:50 -06:00
|
|
|
- meson
|
|
|
|
- ninja
|
2019-01-11 15:13:10 -06:00
|
|
|
update: false # do not update homebrew by default
|
2015-07-11 14:06:18 -05:00
|
|
|
apt:
|
|
|
|
sources:
|
2019-06-25 14:27:26 -07:00
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-xenial-8
|
2015-07-11 14:06:18 -05:00
|
|
|
packages:
|
2019-10-11 11:19:00 -07:00
|
|
|
- clang-format-8
|
2019-06-25 14:27:26 -07:00
|
|
|
- clang-8
|
2015-07-11 14:09:52 -05:00
|
|
|
- valgrind
|
2015-04-18 18:24:46 -07:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-01-12 12:32:15 -06:00
|
|
|
- name: Mac clang meson static release testing
|
|
|
|
os: osx
|
2019-10-11 11:19:00 -07:00
|
|
|
osx_image: xcode11
|
2015-04-18 18:24:46 -07:00
|
|
|
compiler: clang
|
2019-06-25 14:27:26 -07:00
|
|
|
env:
|
|
|
|
CXX="clang++"
|
|
|
|
CC="clang"
|
2019-01-12 12:32:15 -06:00
|
|
|
LIB_TYPE=static
|
|
|
|
BUILD_TYPE=release
|
|
|
|
script: ./.travis_scripts/meson_builder.sh
|
2019-06-25 14:48:40 -07:00
|
|
|
- name: Linux xenial clang meson static release testing
|
2019-01-12 12:32:15 -06:00
|
|
|
os: linux
|
2019-06-25 14:27:26 -07:00
|
|
|
dist: xenial
|
2015-04-18 18:24:46 -07:00
|
|
|
compiler: clang
|
2019-06-25 14:27:26 -07:00
|
|
|
env:
|
|
|
|
CXX="clang++"
|
|
|
|
CC="clang"
|
2019-01-12 12:32:15 -06:00
|
|
|
LIB_TYPE=static
|
|
|
|
BUILD_TYPE=release
|
2020-10-10 09:06:43 -05:00
|
|
|
PYTHONUSERBASE="$(pwd)/LOCAL"
|
|
|
|
PATH="$PYTHONUSERBASE/bin:$PATH"
|
2019-01-12 12:32:15 -06:00
|
|
|
# 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 14:48:40 -07:00
|
|
|
- name: Linux xenial gcc cmake coverage
|
2019-01-12 12:32:15 -06:00
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
compiler: gcc
|
2019-06-25 14:27:26 -07:00
|
|
|
env:
|
2019-01-12 12:32:15 -06:00
|
|
|
CXX=g++
|
|
|
|
CC=gcc
|
|
|
|
DO_Coverage=ON
|
|
|
|
BUILD_TOOL="Unix Makefiles"
|
2019-06-25 14:27:26 -07:00
|
|
|
BUILD_TYPE=Debug
|
|
|
|
LIB_TYPE=shared
|
2019-01-12 12:32:15 -06:00
|
|
|
DESTDIR=/tmp/cmake_json_cpp
|
2019-10-18 01:46:41 +08:00
|
|
|
before_install:
|
|
|
|
- pip install --user cpp-coveralls
|
2019-01-12 12:32:15 -06:00
|
|
|
script: ./.travis_scripts/cmake_builder.sh
|
2019-10-18 01:46:41 +08:00
|
|
|
after_success:
|
|
|
|
- coveralls --include src/lib_json --include include
|
2013-05-08 21:23:52 +00:00
|
|
|
notifications:
|
2015-07-12 09:53:40 -05:00
|
|
|
email: false
|