-
Notifications
You must be signed in to change notification settings - Fork 50
/
.travis.yml
37 lines (29 loc) · 837 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: cpp
compiler:
- clang
- gcc
sudo: false
addons:
apt:
sources:
- kalakris-cmake
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- cmake
- clang-3.6
- g++-5
- cppcheck
before_install:
- if [ "$CXX" = "g++" ] && [ $TRAVIS_OS_NAME = "linux" ]; then export CXX="g++-5"; fi
- if [ $TRAVIS_OS_NAME = "osx" ]; then brew update; brew install cppcheck; fi
script:
- wget https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py && find . -name '*.h' -o -name '*.cc' | xargs python cpplint.py
- cppcheck --enable=all --error-exitcode=1 --inline-suppr --suppress=unmatchedSuppression -I include/ src/ spec/
- cd build && cmake .. && make && spec/ccspec_spec
cache: ccache
os:
- linux
- osx
notifications:
email: false