1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-10 19:20:13 +00:00

CSV Progress (2) (#219)

* CSV Progress (2)

* Git time
This commit is contained in:
Ethan Roseman 2020-06-21 20:58:56 -04:00 committed by GitHub
parent ab1ec89f22
commit 22d79e5e95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

1
Jenkinsfile vendored
View file

@ -21,6 +21,7 @@ pipeline {
}
steps {
sh 'python3 progress.py -c >> /var/www/html/reports/progress.csv'
sh 'python3 progress.py -mc >> /var/www/html/reports/progress_matching.csv'
}
}
}

View file

@ -2,9 +2,9 @@
import argparse
import csv
import git
import os
import re
import time
parser = argparse.ArgumentParser(description="Computes current progress throughout the whole project.")
parser.add_argument("-m", "--matching", dest='matching', action='store_true',
@ -115,8 +115,12 @@ compiled_bytes = total
bytesPerHeartPiece = compiled_bytes / 80
if args.csv:
timestamp = str(time.time())
print(timestamp + "," + str(srcPct) + "," + str(asmPct) + "," + str(bootPct) + "," + str(codePct) + "," + str(ovlPct))
version = 1
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:
adjective = "decompiled" if not args.matching else "matched"