#8711 Run Makefile target validateXML on travis
This commit is contained in:
parent
8fee6cce84
commit
b6103d15a6
|
@ -84,7 +84,7 @@ script:
|
||||||
- xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml
|
- xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml
|
||||||
# check test/cfg
|
# check test/cfg
|
||||||
- make checkcfg
|
- make checkcfg
|
||||||
- make validateCFG
|
- make validateXML
|
||||||
- cd ./gui
|
- cd ./gui
|
||||||
# clean rebuild
|
# clean rebuild
|
||||||
- git clean -dfx .
|
- git clean -dfx .
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -320,7 +320,7 @@ validatePlatforms: ${PlatformFilesCHECKED}
|
||||||
/tmp/errorlist.xml: cppcheck
|
/tmp/errorlist.xml: cppcheck
|
||||||
./cppcheck --errorlist >$@
|
./cppcheck --errorlist >$@
|
||||||
/tmp/example.xml: cppcheck
|
/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
|
createXMLExamples:/tmp/errorlist.xml /tmp/example.xml
|
||||||
.PHONY: validateXML
|
.PHONY: validateXML
|
||||||
validateXML: createXMLExamples
|
validateXML: createXMLExamples
|
||||||
|
|
|
@ -418,7 +418,7 @@ int main(int argc, char **argv)
|
||||||
fout << "/tmp/errorlist.xml: cppcheck\n";
|
fout << "/tmp/errorlist.xml: cppcheck\n";
|
||||||
fout << "\t./cppcheck --errorlist >$@\n";
|
fout << "\t./cppcheck --errorlist >$@\n";
|
||||||
fout << "/tmp/example.xml: cppcheck\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 << "createXMLExamples:/tmp/errorlist.xml /tmp/example.xml\n";
|
||||||
fout << ".PHONY: validateXML\n";
|
fout << ".PHONY: validateXML\n";
|
||||||
fout << "validateXML: createXMLExamples\n";
|
fout << "validateXML: createXMLExamples\n";
|
||||||
|
|
Loading…
Reference in New Issue