mirror of
https://github.com/nlohmann/json.git
synced 2024-12-01 11:39:03 +08: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: clang
|
|
env: COMPILER=clang++-3.9
|
|
addons:
|
|
apt:
|
|
sources: ['ubuntu-toolchain-r-test']
|
|
packages: ['g++-6', 'clang-3.9']
|
|
|
|
################
|
|
# 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 ..
|