2016-08-09 22:18:13 +02:00
|
|
|
#########################
|
|
|
|
# project configuration #
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# C++ project
|
2013-07-04 10:54:16 +02:00
|
|
|
language: cpp
|
|
|
|
|
2016-08-09 23:05:42 +02:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2017-06-19 21:51:24 +02:00
|
|
|
group: edge
|
2016-08-09 22:18:13 +02:00
|
|
|
|
2015-07-24 21:41:07 +02:00
|
|
|
|
2016-08-10 18:54:19 +02: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 22:18:13 +02:00
|
|
|
################
|
|
|
|
# build matrix #
|
|
|
|
################
|
2016-05-29 12:07:20 +02:00
|
|
|
|
2015-08-21 19:05:47 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-04-29 19:29:02 +02:00
|
|
|
|
2017-07-08 22:59:19 +02:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2017-08-10 19:03:35 +02:00
|
|
|
env: COMPILER=clang-3.8
|
2017-07-08 22:59:19 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
2017-08-10 19:03:35 +02:00
|
|
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8']
|
|
|
|
packages: ['g++-6', 'clang-3.8']
|
2016-08-09 22:18:13 +02:00
|
|
|
|
|
|
|
################
|
|
|
|
# build script #
|
|
|
|
################
|
|
|
|
|
2016-08-22 20:54:32 +02:00
|
|
|
script:
|
2017-08-10 19:03:35 +02:00
|
|
|
# make sure CXX is correctly set
|
|
|
|
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
|
|
|
|
|
2016-08-22 20:54:32 +02:00
|
|
|
# show OS/compiler version
|
|
|
|
- uname -a
|
|
|
|
- $CXX --version
|
|
|
|
|
2016-11-27 16:19:26 +01:00
|
|
|
# compile and execute unit tests
|
2017-02-12 15:10:40 +01:00
|
|
|
- mkdir -p build && cd build
|
|
|
|
- cmake .. && cmake --build . --config Release -- -j4
|
|
|
|
- ctest -C Release -V
|
|
|
|
- cd ..
|