2018-11-15 14:10:48 +00:00
|
|
|
language: cpp
|
|
|
|
compiler: gcc
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -qq
|
2018-11-16 10:30:19 +00:00
|
|
|
- sudo apt-cache search libuuid
|
2018-11-15 14:10:48 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- sudo apt-get install -qq g++-8
|
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
|
|
|
|
- sudo apt-get install -qq cppcheck
|
2018-11-16 10:30:19 +00:00
|
|
|
- sudo apt-get install uuid-dev
|
2018-11-15 14:10:48 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
2018-11-16 08:38:09 +00:00
|
|
|
- cmake -H. -BBuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -Wdev
|
2018-11-15 14:10:48 +00:00
|
|
|
- cd Build
|
|
|
|
|
|
|
|
script:
|
|
|
|
- make -j 2
|
|
|
|
- ctest -V -j 2 -C Release
|
|
|
|
- cppcheck --quiet --error-exitcode=1 .
|
|
|
|
|