Index: DamOverall/trunk/doc/DAM - Architecture Overall/DAM - Architecture Overall.tex =================================================================== diff -u -r3391 -r3393 --- DamOverall/trunk/doc/DAM - Architecture Overall/DAM - Architecture Overall.tex (.../DAM - Architecture Overall.tex) (revision 3391) +++ DamOverall/trunk/doc/DAM - Architecture Overall/DAM - Architecture Overall.tex (.../DAM - Architecture Overall.tex) (revision 3393) @@ -24,10 +24,10 @@ \references{Refer to \autoref{Literature}.} -\summary{This document contains a description of the overall architecture for \ProgramName, an application that computes the strength of a complete dikering with respect to several failure mechanisms, such as macro stability and piping.\\ -\\ -\textbf{\footnotesize{Samenvatting}} \\ -Dit document bevat een beschrijving van de totale architectuur van \ProgramName, een User Interface applicatie die een gebruiker in staat stelt om voor een dijktraject berekeningen uit te voeren voor verschillende faalmechanismen, waaronder macrostabiliteit en piping.} +\summary{This document contains a description of the overall architecture for \ProgramName, an application that computes the strength of a complete dikering with respect to several failure mechanisms, such as macro stability and piping. + + \textbf{\footnotesize{Samenvatting}} \\ + Dit document bevat een beschrijving van de totale architectuur van \ProgramName, een User Interface applicatie die een gebruiker in staat stelt om voor een dijktraject berekeningen uit te voeren voor verschillende faalmechanismen, waaronder macrostabiliteit en piping.} \versioni{1.0} \datei{Jul 2019} Index: DamOverall/trunk/doc/DAM - Architecture Overall/DAM - Architecture Overall.pdf =================================================================== diff -u -r3391 -r3393 Binary files differ Index: DamOverall/trunk/doc/DAM Projectplan/DAM - Projectplan.pdf =================================================================== diff -u -r1703 -r3393 Binary files differ Index: DamOverall/trunk/doc/parseLogs.py =================================================================== diff -u --- DamOverall/trunk/doc/parseLogs.py (revision 0) +++ DamOverall/trunk/doc/parseLogs.py (revision 3393) @@ -0,0 +1,47 @@ +import os + +logDirectory = r"./BuildLogs" +pdfDirectory = r"./Documents" + +pdfFiles = os.listdir(pdfDirectory) +expectedDocuments = ["DAM - Architecture Overall.pdf", + "DAM - Projectplan.pdf"] + +print ("##teamcity[testStarted name='PDF Generated']") +for doc in expectedDocuments: + if doc not in pdfFiles: + print ("##teamcity[testFailed name='PDF Generated' message='{} - Not Generated']".format(doc.strip())) +print ("##teamcity[testFinished name='PDF Generated']") + + +logFiles = os.listdir(logDirectory) +for log in logFiles: + name = log.strip("_Log.txt") + path = os.path.join(logDirectory,log) + print ("##teamcity[testSuiteStarted name='{}']".format(name)) + + fi = open(path, 'r') + logLines = fi.readlines() + + print ("##teamcity[testStarted name='LaTeX Warnings']") + for line in logLines: + text = line.replace("'", " ") + text = text.replace("`", " ") + if "LaTeX Warning:" in line: + if "was:used:in:doc" not in text and "\@arrayparboxrestore" not in text and "There were multiply-defined labels" not in text and "underbar has changed" not in text and "underline has changed" not in text and 'Font shape declaration has incorrect series value' not in text and 'You have requested document class ../WTI_References/BOIReleaseN' not in text: + print("##teamcity[testFailed name='LaTeX Warnings' message='{}']".format(text.strip())) + + print ("##teamcity[testFinished name='LaTeX Warnings']") + + print ("##teamcity[testStarted name='Citation Warnings']") + for line in logLines: + text = line.replace("'", " ") + text = text.replace("`", " ") + if "Package natbib Warning: Citation" in line: + print ("##teamcity[testFailed name='Citation Warnings' message='{}']".format(text.strip())) + + print ("##teamcity[testFinished name='Citation Warnings']") + + + print ("##teamcity[testSuiteFinished name='{}']".format(name)) + fi.close() Index: DamOverall/trunk/doc/buildDocs.bat =================================================================== diff -u --- DamOverall/trunk/doc/buildDocs.bat (revision 0) +++ DamOverall/trunk/doc/buildDocs.bat (revision 3393) @@ -0,0 +1,28 @@ +REM This is the order of dependencies of the files. + +mkdir "BuildLogs" +mkdir "Documents" + +cd ".\DAM - Architecture Overall" +pdflatex "DAM - Architecture Overall.tex" +bibtex "DAM - Architecture Overall" +pdflatex "DAM - Architecture Overall.tex" +pdflatex "DAM - Architecture Overall.tex" > ArchitectureOverall_Log.txt +xcopy ArchitectureOverall_Log.txt "..\BuildLogs" /Y +xcopy *.aux ..\documents /Y +xcopy *.pdf ..\documents /Y + +cd "..\DAM Projectplan" +pdflatex "DAM - Projectplan.tex" +bibtex "DAM - Projectplan" +pdflatex "DAM - Projectplan.tex" +pdflatex "DAM - Projectplan" > ProjectPlan_Log.txt +xcopy ProjectPlan_Log.txt "..\BuildLogs" /Y +xcopy *.aux ..\documents /Y +xcopy *.pdf ..\documents /Y + +cd .. +python parseLogs.py + +rem cd .. +rem xcopy .\documents\*.pdf . /Y \ No newline at end of file Index: DamOverall/trunk/doc/DAM Projectplan/DAM - Projectplan.tex =================================================================== diff -u -r1703 -r3393 --- DamOverall/trunk/doc/DAM Projectplan/DAM - Projectplan.tex (.../DAM - Projectplan.tex) (revision 1703) +++ DamOverall/trunk/doc/DAM Projectplan/DAM - Projectplan.tex (.../DAM - Projectplan.tex) (revision 3393) @@ -25,10 +25,10 @@ \references{Refer to \autoref{sec:referenties}.} -\summary{This document contains the projectplan for refactoring of \ProgramName, an application that computes the strength of a complete dikering with respect to several failure mechnanisms, such as macro stability and piping.\\ -\\ -\textbf{\footnotesize{Samenvatting}} \\ -Dit document bevat het projectplan voor de refactoring van \ProgramName, een User Interface applicatie die een gebruiker in staat stelt om voor een dijktraject berekeningen uit te voeren voor verschillende faalmechanismen, waaronder macrostabiliteit en piping.} +\summary{This document contains the projectplan for refactoring of \ProgramName, an application that computes the strength of a complete dikering with respect to several failure mechnanisms, such as macro stability and piping. + + \textbf{\footnotesize{Samenvatting}} \\ + Dit document bevat het projectplan voor de refactoring van \ProgramName, een User Interface applicatie die een gebruiker in staat stelt om voor een dijktraject berekeningen uit te voeren voor verschillende faalmechanismen, waaronder macrostabiliteit en piping.} \versioni{0.2} \datei{Mrt 2017}