mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 06:29:03 +08:00
55 lines
1.1 KiB
YAML
55 lines
1.1 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++
|
|
addons:
|
|
apt:
|
|
packages: ['clang-3.4']
|
|
|
|
################
|
|
# 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 ..
|