diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-12-14 14:50:21 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2019-06-26 16:57:14 +0200 |
commit | c4606b84329d760d7cee144bebe05807857edaae (patch) | |
tree | b8abcff8c3b042e2782fc4b0bd6d2f3c68385a13 /.travis/extended_lint_04_install.sh | |
parent | 332c6134bb15384e5b91c631e821fe52a591d3bc (diff) | |
download | bitcoin-c4606b84329d760d7cee144bebe05807857edaae.tar.xz |
Add Travis check for single parameter constructors not marked "explicit"
Diffstat (limited to '.travis/extended_lint_04_install.sh')
-rwxr-xr-x | .travis/extended_lint_04_install.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.travis/extended_lint_04_install.sh b/.travis/extended_lint_04_install.sh new file mode 100755 index 0000000000..123d874a84 --- /dev/null +++ b/.travis/extended_lint_04_install.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2019 The Bitcoin Core developers +# Distributed under the MIT software license, see the accompanying +# file COPYING or http://www.opensource.org/licenses/mit-license.php. + +export LC_ALL=C + +CPPCHECK_VERSION=1.86 +curl -s https://codeload.github.com/danmar/cppcheck/tar.gz/${CPPCHECK_VERSION} | tar -zxf - --directory /tmp/ +(cd /tmp/cppcheck-${CPPCHECK_VERSION}/ && make CFGDIR=/tmp/cppcheck-${CPPCHECK_VERSION}/cfg/ > /dev/null) +export PATH="$PATH:/tmp/cppcheck-${CPPCHECK_VERSION}/" |