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