Newer
Older
services:
- docker
notifications:
email: false
addons:
homebrew:
packages:
- clang-format
- ninja
- os: linux
compiler: gcc
env:
- CXX_VERSION=g++-8
- CC_VERSION=gcc-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- software-properties-common
- curl
- ninja-build
- pkg-config
- make
- g++-8
- unzip
- git
- libssl-dev
- openssl
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-6.0
- sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang++-6.0
- clang-6.0
- software-properties-common
- curl
- ninja-build
- pkg-config
- make
- g++-8
- unzip
- git
- libssl-dev
- openssl
script:
- $CXX --version
- cmake --version
# Start the synapse server to run the tests.
- if [ $TRAVIS_OS_NAME == linux ]; then make synapse; fi
# Build the lib and run the linter & tests.
- ./.ci/script.sh
# Generate coverage report and upload report to CodeCov.
if [ "$COVERAGE" == ON ]; then
./.ci/coverage.sh && \
bash <(curl -s https://codecov.io/bash) -f build/coverage.info || echo "Codecov failed"