2016-04-26 19:41:27 +00:00
|
|
|
language: generic
|
2015-12-20 23:09:35 +00:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
matrix:
|
2015-12-20 23:11:15 +00:00
|
|
|
include:
|
2016-04-26 22:39:42 +00:00
|
|
|
# coverage+debug build
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
env: BUILDTYPE=Debug CC="clang-3.5" CXX="clang++-3.5" CXXFLAGS="--coverage" CFLAGS="--coverage" LDFLAGS="--coverage"
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
|
|
|
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
|
|
|
|
# release+linux+g++
|
2015-12-20 23:09:35 +00:00
|
|
|
- os: linux
|
2015-12-23 01:08:41 +00:00
|
|
|
compiler: gcc
|
2016-04-26 22:39:42 +00:00
|
|
|
env: BUILDTYPE=Release CC="gcc-4.9" CXX="g++-4.9"
|
2015-12-23 00:55:21 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-04-26 19:51:48 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test']
|
2016-04-26 20:50:08 +00:00
|
|
|
packages: [ 'g++-4.9' ]
|
2016-04-26 22:39:42 +00:00
|
|
|
# release+linux+clang++
|
2015-12-23 01:08:41 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2016-04-26 22:39:42 +00:00
|
|
|
env: BUILDTYPE=Release CC="clang-3.5" CXX="clang++-3.5"
|
2015-12-23 01:08:41 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-04-26 19:51:48 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
2016-04-26 20:50:08 +00:00
|
|
|
packages: [ 'clang-3.5' ]
|
2016-04-26 22:39:42 +00:00
|
|
|
# release+osx
|
2015-12-23 00:30:28 +00:00
|
|
|
- os: osx
|
2015-12-23 01:08:41 +00:00
|
|
|
compiler: clang
|
2016-04-26 22:39:42 +00:00
|
|
|
env: BUILDTYPE=Release
|
2016-04-26 22:46:58 +00:00
|
|
|
# debug+osx
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env: BUILDTYPE=Debug
|
2015-12-20 23:09:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
install:
|
2016-04-26 22:39:42 +00:00
|
|
|
- BUILDTYPE=${BUILDTYPE} make
|
2015-12-20 23:09:35 +00:00
|
|
|
|
|
|
|
script:
|
2016-04-26 22:39:42 +00:00
|
|
|
- BUILDTYPE=${BUILDTYPE} make test
|
2015-12-23 00:55:21 +00:00
|
|
|
- if [ -n "${COVERAGE}" ]; then
|
2016-04-26 22:39:42 +00:00
|
|
|
/usr/bin/llvm-cov-3.5 -lp *.o;
|
2015-12-23 00:55:21 +00:00
|
|
|
pip install --user cpp-coveralls;
|
2016-04-26 22:39:42 +00:00
|
|
|
~/.local/bin/coveralls --no-gcov -i ./ --exclude clipper;
|
2015-12-23 00:55:21 +00:00
|
|
|
fi
|