json/.travis.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

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
group: edge
2016-08-09 23:18:13 +03:00
2015-07-24 22:41:07 +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
env: COMPILER=clang-3.7
2017-07-08 23:59:19 +03:00
addons:
apt:
2017-08-10 20:15:16 +03:00
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7']
2017-08-10 20:12:04 +03:00
packages: ['g++-6', 'clang-3.7']
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
# compile and execute unit tests
- mkdir -p build && cd build
- cmake .. && cmake --build . --config Release -- -j4
- ctest -C Release -V
- cd ..