travis: Check for format errors

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
This commit is contained in:
Rick Altherr 2018-01-08 14:06:22 -08:00
parent d14fc142df
commit fdea2b256d
1 changed files with 21 additions and 13 deletions

View File

@ -2,24 +2,32 @@ language: cpp
matrix:
include:
# Job 1) Test C++ w/ GCC
- os: linux
dist: trusty
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
before_install:
- eval "${MATRIX_EVAL}"
script:
- mkdir -p build
- cd build
- cmake -DPRJXRAY_BUILD_TESTING=ON ..
- make -j 4
- ctest
script:
- export CC=gcc-6
- export CXX=g++-6
- mkdir -p build
- pushd build
- cmake -DPRJXRAY_BUILD_TESTING=ON ..
- make -j 4
- ctest
# Job 2) Lint checks on Python and C++
- os: linux
dist: trusty
addons:
apt:
packages:
- clang-format-3.9
install:
- pip install --user -r requirements.txt
script:
- make format
- test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }