From b6103d15a602d98dbda27a2259830a7639d18e05 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Mon, 24 Sep 2018 14:27:02 +0200 Subject: [PATCH] #8711 Run Makefile target validateXML on travis --- .travis.yml | 2 +- Makefile | 2 +- tools/dmake.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6cf17f220..0440350e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,7 +84,7 @@ script: - xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml # check test/cfg - make checkcfg - - make validateCFG + - make validateXML - cd ./gui # clean rebuild - git clean -dfx . diff --git a/Makefile b/Makefile index 8ec8225c1..c04915cb6 100644 --- a/Makefile +++ b/Makefile @@ -320,7 +320,7 @@ validatePlatforms: ${PlatformFilesCHECKED} /tmp/errorlist.xml: cppcheck ./cppcheck --errorlist >$@ /tmp/example.xml: cppcheck - ./cppcheck --xml --enable=all --inconclusive --suppress=operatorEqVarError:*check.h cli externals gui lib test 2>/tmp/example.xml + ./cppcheck --xml --enable=all --inconclusive --suppress=operatorEqVarError:*check.h -j 4 cli externals gui lib test 2>/tmp/example.xml createXMLExamples:/tmp/errorlist.xml /tmp/example.xml .PHONY: validateXML validateXML: createXMLExamples diff --git a/tools/dmake.cpp b/tools/dmake.cpp index 70b6f1e80..9a45e4780 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -418,7 +418,7 @@ int main(int argc, char **argv) fout << "/tmp/errorlist.xml: cppcheck\n"; fout << "\t./cppcheck --errorlist >$@\n"; fout << "/tmp/example.xml: cppcheck\n"; - fout << "\t./cppcheck --xml --enable=all --inconclusive --suppress=operatorEqVarError:*check.h cli externals gui lib test 2>/tmp/example.xml\n"; + fout << "\t./cppcheck --xml --enable=all --inconclusive --suppress=operatorEqVarError:*check.h -j 4 cli externals gui lib test 2>/tmp/example.xml\n"; fout << "createXMLExamples:/tmp/errorlist.xml /tmp/example.xml\n"; fout << ".PHONY: validateXML\n"; fout << "validateXML: createXMLExamples\n";