mirror of
https://github.com/nlohmann/json
synced 2024-11-15 16:50:06 +00:00
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
#########################
|
|
# project configuration #
|
|
#########################
|
|
|
|
# C++ project
|
|
language: cpp
|
|
|
|
dist: trusty
|
|
sudo: required
|
|
group: edge
|
|
|
|
|
|
###################
|
|
# 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="
|
|
|
|
|
|
################
|
|
# build matrix #
|
|
################
|
|
|
|
matrix:
|
|
include:
|
|
|
|
- os: linux
|
|
compiler: gcc
|
|
env: COMPILER=clang-3.8
|
|
addons:
|
|
apt:
|
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7']
|
|
packages: ['g++-6', 'clang-3.7']
|
|
|
|
################
|
|
# build script #
|
|
################
|
|
|
|
script:
|
|
# make sure CXX is correctly set
|
|
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
|
|
|
|
# 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 ..
|