mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-29 03:34:07 +00:00
parent
ab1ec89f22
commit
22d79e5e95
2 changed files with 8 additions and 3 deletions
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
|
@ -21,6 +21,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'python3 progress.py -c >> /var/www/html/reports/progress.csv'
|
sh 'python3 progress.py -c >> /var/www/html/reports/progress.csv'
|
||||||
|
sh 'python3 progress.py -mc >> /var/www/html/reports/progress_matching.csv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
10
progress.py
10
progress.py
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import csv
|
import csv
|
||||||
|
import git
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import time
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description="Computes current progress throughout the whole project.")
|
parser = argparse.ArgumentParser(description="Computes current progress throughout the whole project.")
|
||||||
parser.add_argument("-m", "--matching", dest='matching', action='store_true',
|
parser.add_argument("-m", "--matching", dest='matching', action='store_true',
|
||||||
|
@ -115,8 +115,12 @@ compiled_bytes = total
|
||||||
bytesPerHeartPiece = compiled_bytes / 80
|
bytesPerHeartPiece = compiled_bytes / 80
|
||||||
|
|
||||||
if args.csv:
|
if args.csv:
|
||||||
timestamp = str(time.time())
|
version = 1
|
||||||
print(timestamp + "," + str(srcPct) + "," + str(asmPct) + "," + str(bootPct) + "," + str(codePct) + "," + str(ovlPct))
|
git_object = git.Repo().head.object
|
||||||
|
timestamp = str(git_object.committed_date)
|
||||||
|
git_hash = git_object.hexsha
|
||||||
|
csv_list = [str(version), timestamp, git_hash, str(code), str(codeSize), str(boot), str(bootSize), str(ovl), str(ovlSize), str(src), str(asm), str(len(nonMatchingFunctions))]
|
||||||
|
print(",".join(csv_list))
|
||||||
else:
|
else:
|
||||||
adjective = "decompiled" if not args.matching else "matched"
|
adjective = "decompiled" if not args.matching else "matched"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue