From 44c63d10487d5616906e9d0017d6d7507d9a3a98 Mon Sep 17 00:00:00 2001 From: nikolas Date: Thu, 31 Oct 2019 09:55:09 -0300 Subject: [PATCH] Move travis to use a new version of Ubuntu --- .travis.yml | 6 ++++-- Makefile.am | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9e78797c..4b6fde61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -dist: trusty +dist: bionic sudo: true addons: @@ -9,7 +9,6 @@ addons: - libgeoip-dev - liblua5.2-dev - liblmdb-dev - - cppcheck language: cpp @@ -38,9 +37,12 @@ before_script: - '[ "$TRAVIS_OS_NAME" != osx ] || brew install libmaxminddb' - '[ "$TRAVIS_OS_NAME" != osx ] || brew install lmdb' - '[ "$TRAVIS_OS_NAME" != linux ] || sudo add-apt-repository --yes ppa:maxmind/ppa' + - '[ "$TRAVIS_OS_NAME" != linux ] || sudo add-apt-repository --yes ppa:grochefort/cppcheck' - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get update' - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-cache search maxmind' - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get install -y libmaxminddb-dev' + - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get install -y cppcheck' + - '[ "$TRAVIS_OS_NAME" != linux ] || cppcheck --version' script: - ./build.sh diff --git a/Makefile.am b/Makefile.am index 8c85b0a9..6ebf12f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -64,7 +64,9 @@ cppcheck: --template="warning: {file},{line},{severity},{id},{message}" \ -I headers -I . -I others -I src -I others/mbedtls -I src/parser \ --error-exitcode=1 \ - -i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \ + -i "src/parser/seclang-parser.cc" \ + -i "src/parser/seclang-scanner.cc" \ + -i "parser/driver.cc" \ --force --verbose .