donate-cpu.py: Introduce version number for client script (#1654)
The version number is added to the result output so issues could be more easily reproduced and in the future if it is necessary to handle any specific version of the client by the server in a special way (for example because it is erroneous) this is possible now.
This commit is contained in:
parent
fc7494c832
commit
a997d0b387
|
@ -34,6 +34,12 @@ import tarfile
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
||||||
|
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
|
||||||
|
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
|
||||||
|
# changes)
|
||||||
|
CLIENT_VERSION = "1.0.0"
|
||||||
|
|
||||||
|
|
||||||
def checkRequirements():
|
def checkRequirements():
|
||||||
result = True
|
result = True
|
||||||
for app in ['g++', 'git', 'make', 'wget']:
|
for app in ['g++', 'git', 'make', 'wget']:
|
||||||
|
@ -482,6 +488,7 @@ while True:
|
||||||
output = 'cppcheck-options: ' + cppcheck_options + '\n'
|
output = 'cppcheck-options: ' + cppcheck_options + '\n'
|
||||||
output += 'platform: ' + platform.platform() + '\n'
|
output += 'platform: ' + platform.platform() + '\n'
|
||||||
output += 'python: ' + platform.python_version() + '\n'
|
output += 'python: ' + platform.python_version() + '\n'
|
||||||
|
output += 'client-version: ' + CLIENT_VERSION + '\n'
|
||||||
output += 'cppcheck: ' + ' '.join(cppcheckVersions) + '\n'
|
output += 'cppcheck: ' + ' '.join(cppcheckVersions) + '\n'
|
||||||
output += 'count:' + count + '\n'
|
output += 'count:' + count + '\n'
|
||||||
output += 'elapsed-time:' + elapsedTime + '\n'
|
output += 'elapsed-time:' + elapsedTime + '\n'
|
||||||
|
|
Loading…
Reference in New Issue