2016-08-09 20:18:13 +00:00
|
|
|
#########################
|
|
|
|
# project configuration #
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# C++ project
|
2013-07-04 08:54:16 +00:00
|
|
|
language: cpp
|
|
|
|
|
2016-08-09 21:05:42 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2017-06-19 19:51:24 +00:00
|
|
|
group: edge
|
2016-08-09 20:18:13 +00:00
|
|
|
|
2015-07-24 19:41:07 +00:00
|
|
|
|
2016-08-10 16:54:19 +00:00
|
|
|
###################
|
|
|
|
# global settings #
|
|
|
|
###################
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "m89SSgE+ASLO38rSKx7MTXK3n5NkP9bIx95jwY71YEiuFzib30PDJ/DifKnXxBjvy/AkCGztErQRk/8ZCvq+4HXozU2knEGnL/RUitvlwbhzfh2D4lmS3BvWBGS3N3NewoPBrRmdcvnT0xjOGXxtZaJ3P74TkB9GBnlz/HmKORA="
|
|
|
|
|
|
|
|
|
2016-08-09 20:18:13 +00:00
|
|
|
################
|
|
|
|
# build matrix #
|
|
|
|
################
|
2016-05-29 10:07:20 +00:00
|
|
|
|
2015-08-21 17:05:47 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-04-29 17:29:02 +00:00
|
|
|
|
2017-07-08 20:59:19 +00:00
|
|
|
- os: linux
|
2017-08-10 17:18:45 +00:00
|
|
|
compiler: clang
|
2017-08-10 18:04:36 +00:00
|
|
|
env: COMPILER=clang++-3.8
|
2017-07-08 20:59:19 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2017-08-10 18:04:36 +00:00
|
|
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-3.8']
|
|
|
|
packages: ['g++-6', 'clang-3.8']
|
2016-08-09 20:18:13 +00:00
|
|
|
|
|
|
|
################
|
|
|
|
# build script #
|
|
|
|
################
|
|
|
|
|
2016-08-22 18:54:32 +00:00
|
|
|
script:
|
2017-08-10 17:03:35 +00:00
|
|
|
# make sure CXX is correctly set
|
|
|
|
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
|
|
|
|
|
2016-08-22 18:54:32 +00:00
|
|
|
# show OS/compiler version
|
|
|
|
- uname -a
|
|
|
|
- $CXX --version
|
|
|
|
|
2016-11-27 15:19:26 +00:00
|
|
|
# compile and execute unit tests
|
2017-02-12 14:10:40 +00:00
|
|
|
- mkdir -p build && cd build
|
|
|
|
- cmake .. && cmake --build . --config Release -- -j4
|
|
|
|
- ctest -C Release -V
|
|
|
|
- cd ..
|