From 91dfc723be178f692b9a2679596119a8c1c857e5 Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 29 May 2016 12:07:20 +0200 Subject: [PATCH] added coverity_scan --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1ada0084c..e7ae4444c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,12 @@ language: cpp dist: trusty sudo: required +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=" + # from http://stackoverflow.com/a/32127147/266378 matrix: include: @@ -21,6 +27,15 @@ matrix: - ./json_unit "*" - coveralls --exclude test/src/catch.hpp --exclude test/src/unit.cpp --include src/json.hpp --gcov-options '\-lp' --gcov 'gcov-4.9' env: COMPILER=g++-4.9 + addons: + coverity_scan: + project: + name: "nlohmann/json" + description: "Build submitted via Travis CI" + notification_email: niels.lohmann@gmail.com + build_command_prepend: "make clean" + build_command: "make doctest" + branch_pattern: coverity_scan - os: linux compiler: gcc