Bump reference platform to Ubuntu 18.04 LTS (#3037)
Ubuntu 14.04 reached its end of life on April 30m 2019. Let's bump the reference to the latest LTS, which is 18.04. Ubuntu 18.04 has newer Pylint and Cppcheck, the necessary fixes and suppresses are also included in this PR. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
This commit is contained in:
@@ -40,6 +40,7 @@ cppcheck -j$CPPCHECK_JOBS --force \
|
||||
--enable=warning,style,performance,portability,information \
|
||||
--template="{file}:{line}: {severity}({id}): {message}" \
|
||||
--error-exitcode=1 \
|
||||
--inline-suppr \
|
||||
--exitcode-suppressions=tools/cppcheck/suppressions-list \
|
||||
--suppressions-list=tools/cppcheck/suppressions-list \
|
||||
"${INCLUDE_DIRS[@]}" \
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
wrongmathcall:tests/unit-libm/test-libm.inc.h
|
||||
variableScope:jerry-libm/*.c
|
||||
invalidPointerCast:jerry-libm/*.c
|
||||
commaSeparatedReturn:*
|
||||
|
||||
ConfigurationNotChecked:jerry-core/ecma/builtin-objects/ecma-builtin-global.inc.h
|
||||
ConfigurationNotChecked:jerry-core/ecma/builtin-objects/ecma-builtin-helpers-macro-defines.inc.h
|
||||
ConfigurationNotChecked:jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.inc.h
|
||||
ConfigurationNotChecked:jerry-core/ecma/builtin-objects/ecma-builtin-object.inc.h
|
||||
ConfigurationNotChecked:jerry-core/ecma/builtin-objects/ecma-builtin-helpers-macro-undefs.inc.h
|
||||
|
||||
+1
-1
@@ -301,7 +301,7 @@ def hash_binary(bin_path):
|
||||
hasher = hashlib.sha1()
|
||||
with open(bin_path, 'rb') as bin_file:
|
||||
buf = bin_file.read(blocksize)
|
||||
while len(buf) > 0:
|
||||
while buf:
|
||||
hasher.update(buf)
|
||||
buf = bin_file.read(blocksize)
|
||||
return hasher.hexdigest()
|
||||
|
||||
Reference in New Issue
Block a user