json/.travis.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

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
group: edge
2016-08-09 22:18:13 +02:00
2015-07-24 21:41:07 +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
2017-08-10 19:18:45 +02:00
compiler: clang
2017-08-10 20:31:59 +02:00
env: COMPILER=clang++
2017-07-08 22:59:19 +02:00
addons:
apt:
2017-08-10 20:31:59 +02:00
packages: ['clang-3.4']
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
# compile and execute unit tests
- mkdir -p build && cd build
- cmake .. && cmake --build . --config Release -- -j4
- ctest -C Release -V
- cd ..