Index: DamEngine/trunk/doc/Dam Engine - Functional Design/DesignGeometryAdaption.tex =================================================================== diff -u -r2116 -r3424 --- DamEngine/trunk/doc/Dam Engine - Functional Design/DesignGeometryAdaption.tex (.../DesignGeometryAdaption.tex) (revision 2116) +++ DamEngine/trunk/doc/Dam Engine - Functional Design/DesignGeometryAdaption.tex (.../DesignGeometryAdaption.tex) (revision 3424) @@ -76,7 +76,7 @@ \end{figure} \section{Reducing the gradient of the slope}\label{sec:ReduceSlope} -After the adaptation of the crest height in accordance with DTH (if necessary), \ProgramName will first carry out a stability calculation. If it should emerge that the exit point of the slip circle is on the inner slope and if the calculated safety factor is less than the stated safety factors, \ProgramName will (on condition that the profile adaptation option is on) reduce the gradient of the slope until the calculated safety factor $\ge$ required safety factor and the exit point of the slip circle is on the inner slope, see \autoref{fig:ReduceSlope}. If the exit point is no longer on the inner slope and the calculated safety factor does not comply with the desired safety factor, \ProgramName will generate a stability shoulder, see \autoref{sec:ShoulderDevelop}. +After the adaptation of the crest height in accordance with DTH (if necessary), \ProgramName will first carry out a stability calculation. If it should emerge that the exit point of the slip circle is on the inner slope and if the calculated safety factor is less than the stated safety factors, \ProgramName will (on condition that the profile adaptation option is on) reduce the gradient of the slope until the calculated safety factor $\ge$ required safety factor and the exit point of the slip circle is on the inner slope, see \autoref{fig:ReduceSlope}. If the exit point is no longer on the inner slope and the calculated safety factor does not comply with the desired safety factor, \ProgramName will generate a stability shoulder, see \autoref{fig:ShoulderDevelop}. \begin{figure}[H] \centering Index: DamEngine/trunk/doc/Dam Engine - Functional Design/FO.tex =================================================================== diff -u -r2396 -r3424 --- DamEngine/trunk/doc/Dam Engine - Functional Design/FO.tex (.../FO.tex) (revision 2396) +++ DamEngine/trunk/doc/Dam Engine - Functional Design/FO.tex (.../FO.tex) (revision 3424) @@ -112,7 +112,7 @@ \subsubsection{REQ Calc.DAMPiping}\label{sec:REQ CalcDAMPiping} The DAM engine can make piping calculations with the DAM-piping kernel. -The functional design of the DAM piping kernel is described in \autoref{sec:FODAMPipingKernel}. +%The functional design of the DAM piping kernel is described in \autoref{sec:FODAMPipingKernel}. \subsubsection{REQ Calc.WBIPiping}\label{sec:REQ CalcWBIPiping} Index: DamEngine/trunk/doc/Dam Engine - Functional Design/DAM Engine - Functional Design.tex =================================================================== diff -u -r2397 -r3424 --- DamEngine/trunk/doc/Dam Engine - Functional Design/DAM Engine - Functional Design.tex (.../DAM Engine - Functional Design.tex) (revision 2397) +++ DamEngine/trunk/doc/Dam Engine - Functional Design/DAM Engine - Functional Design.tex (.../DAM Engine - Functional Design.tex) (revision 3424) @@ -5,6 +5,8 @@ \usepackage{enumerate} %----------------------------------------------- +\makeatletter + \begin{document} \pagestyle{empty} \cleardoublepage @@ -27,9 +29,9 @@ \references{Refer to \autoref{chapterLiterature}.} -\summary{This document contains the functional design for \ProgramName, a software module that computes the strength of a complete dike stretch with respect to several failure mechanisms, such as macro stability and piping.\\ -\\ -\textbf{\footnotesize{Samenvatting}} \\ +\summary{This document contains the functional design for \ProgramName, a software module that computes the strength of a complete dike stretch with respect to several failure mechanisms, such as macro stability and piping.\newline +\newline +\textbf{\footnotesize{Samenvatting}} \newline Dit document bevat het functioneel ontwerp voor \ProgramName, een software module die, gekoppeld aan een GUI, de gebruiker in staat stelt om voor een dijktraject berekeningen uit te voeren voor verschillende faalmechanismen, waaronder macrostabiliteit en piping.} \versioni{0.2} Index: DamEngine/trunk/doc/parseLogs.py =================================================================== diff -u --- DamEngine/trunk/doc/parseLogs.py (revision 0) +++ DamEngine/trunk/doc/parseLogs.py (revision 3424) @@ -0,0 +1,47 @@ +import os + +logDirectory = r"./BuildLogs" +pdfDirectory = r"./Documents" + +pdfFiles = os.listdir(pdfDirectory) +expectedDocuments = ["Dam Engine - Functional Design.pdf", + "Dam Engine - Technical Design"] + +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: DamEngine/trunk/doc/Dam Engine - Functional Design/UpliftCalculations.tex =================================================================== diff -u -r2396 -r3424 --- DamEngine/trunk/doc/Dam Engine - Functional Design/UpliftCalculations.tex (.../UpliftCalculations.tex) (revision 2396) +++ DamEngine/trunk/doc/Dam Engine - Functional Design/UpliftCalculations.tex (.../UpliftCalculations.tex) (revision 3424) @@ -1,5 +1,4 @@ \chapter{Uplift calculation}\label{sec:UpliftCalculation} -\label{sec:UpliftCalculation} \ProgramName makes calculations to see whether there is any uplift from the inner toe to the centre of the ditch bottom or to the right limit of the geometry if there is no ditch.\newline The formula from the VTV (2006) is used for this purpose. Index: DamEngine/trunk/doc/buildDocs.bat =================================================================== diff -u --- DamEngine/trunk/doc/buildDocs.bat (revision 0) +++ DamEngine/trunk/doc/buildDocs.bat (revision 3424) @@ -0,0 +1,24 @@ +REM This is the order of dependencies of the files. + +mkdir "BuildLogs" + +cd ".\Dam Engine - Functional Design" +pdflatex "Dam Engine - Functional Design.tex" +bibtex "Dam Engine - Functional Design" +pdflatex "Dam Engine - Functional Design.tex" +pdflatex "Dam Engine - Functional Design.tex" +pdflatex "Dam Engine - Functional Design.tex" > DamEngineFunctionalDesign_Log.txt +xcopy DamEngineFunctionalDesign_Log.txt "..\BuildLogs" /Y +xcopy *.pdf ..\ /Y + +cd "..\Dam Engine - Technical Design" +pdflatex "Dam Engine - Technical Design.tex" +bibtex "Dam Engine - Technical Design" +pdflatex "Dam Engine - Technical Design.tex" +pdflatex "Dam Engine - Technical Design.tex" +pdflatex "Dam Engine - Technical Design.tex" > DamEngineTechnicalDesign_Log.txt +xcopy DamEngineTechnicalDesign_Log.txt "..\BuildLogs" /Y +xcopy *.pdf ..\ /Y + +cd .. +python parseLogs.py \ No newline at end of file