blob: 61585c3f7e45e88f5095feb6ec6a2bcfdcb7ce0a [file] [log] [blame]
sudo: false
language: cpp
python:
- "2.7"
matrix:
include:
- env: COMPILER_VERSION=3.6
compiler: clang
addons: &clang36
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6']
packages: ['cmake', 'nodejs', 'clang-3.6']
- env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=undefined -fno-sanitize-recover=all -fsanitize-blacklist=`pwd`/ubsan.blacklist"
compiler: clang
addons: *clang36
- env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=address"
compiler: clang
addons: *clang36
- env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=thread"
compiler: clang
addons: *clang36
- env: COMPILER_VERSION=5
compiler: gcc
addons: &gcc5
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['cmake', 'nodejs', 'g++-5']
before_install:
- export CC="${CC}-${COMPILER_VERSION}"
- export CXX="${CXX}-${COMPILER_VERSION}"
- export ASAN_OPTIONS="symbolize=1"
install:
- pip install --user flake8
before_script:
# Check the style of a subset of Python code until the other code is updated.
- flake8 ./scripts/*
script:
- cmake . -DCMAKE_C_FLAGS="$COMPILER_FLAGS" -DCMAKE_CXX_FLAGS="$COMPILER_FLAGS"
- make -j2
- ./check.py
notifications:
email: false