From b7f418ff7616cfbd31c8093e492eda4323619b0d Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Mon, 16 Oct 2023 17:05:35 +0100 Subject: [PATCH] chore: enabled drone ci --- .drone.yml | 66 ++++++++++------------------ projectsynopsis/project-synopsis.tex | 65 +++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 44 deletions(-) create mode 100644 projectsynopsis/project-synopsis.tex diff --git a/.drone.yml b/.drone.yml index 0b80aa4..7814044 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,53 +10,30 @@ steps: - name: Build UPDS-1 commands: - - cd upds-1 - - pdflatex UPDS12-1.tex + - cd projectsynopsis + - pdflatex project-synopsis.tex # Prepare bib - - /usr/bin/vendor_perl/biber UPDS12-1 + - /usr/bin/vendor_perl/biber project-synopsis # Compile twice for the table of contents and for bib text - - pdflatex UPDS12-1.tex + - pdflatex project-synopsis.tex - cd - - - name: Build UPDS-2 - commands: - - cd upds-2 - - pdflatex UPDS12-2.tex - # Prepare bib - - /usr/bin/vendor_perl/biber UPDS12-2 - # Compile twice for the table of contents and for bib text - - pdflatex UPDS12-2.tex - - cd - - - - name: Build Report - commands: - - cd report - - cp ../upds-1/UPDS-content.tex UPDS-1-content.tex - - cp ../upds-2/UPDS-content.tex UPDS-2-content.tex - - pdflatex report.tex - # Prepare bib - - /usr/bin/vendor_perl/biber report - # Compile twice for the table of contents and for bib text - - pdflatex report.tex - - cd - - - - name: Build Poster - commands: - - cd poster - - echo -e "\n\n\nFirst 1\n\n\n" - - pdflatex poster.tex || cat poster.log - # Prepare bib - - echo -e "\n\n\nFirst 2\n\n\n" - - /usr/bin/vendor_perl/biber poster - # Compile twice for the table of contents and for bib text - - echo -e "\n\n\nFirst 3\n\n\n" - - pdflatex poster.tex - - cd - - - - name: Generate text - commands: - - pnpm i - - pnpm ts-node main.ts report/report.tex +# - name: Build Report +# commands: +# - cd report +# - cp ../upds-1/UPDS-content.tex UPDS-1-content.tex +# - cp ../upds-2/UPDS-content.tex UPDS-2-content.tex +# - pdflatex report.tex +# # Prepare bib +# - /usr/bin/vendor_perl/biber report +# # Compile twice for the table of contents and for bib text +# - pdflatex report.tex +# - cd - +# +# - name: Generate text +# commands: +# - pnpm i +# - pnpm ts-node main.ts report/report.tex - name: gitea_release environment: @@ -65,7 +42,8 @@ steps: commands: - tea login add --url https://git.andr3h3nriqu3s.com --token "$TOKEN" - tea r rm -y current || echo "Release not found" - - tea r c --title "Latest Report" --asset report/report.pdf --asset upds-1/UPDS12-1.pdf --asset upds-2/UPDS12-2.pdf --asset results.txt --asset poster/poster.pdf current + # - tea r c --title "Latest Report" --asset report/report.pdf --asset upds-1/UPDS12-1.pdf --asset upds-2/UPDS12-2.pdf --asset results.txt --asset poster/poster.pdf current + - tea r c --title "Latest Report" --asset projectsynopsis/project-synopsis.pdf current - name: Remove current on failure environment: diff --git a/projectsynopsis/project-synopsis.tex b/projectsynopsis/project-synopsis.tex new file mode 100644 index 0000000..2b2de16 --- /dev/null +++ b/projectsynopsis/project-synopsis.tex @@ -0,0 +1,65 @@ +%%% Preamble +\documentclass[11pt, a4paper]{article} + +\usepackage[english]{babel} % English language/hyphenation +\usepackage{url} +\usepackage{tabularx} +\usepackage{pdfpages} +\usepackage{float} + +\usepackage{graphicx} +\graphicspath{ {../images for report/} } + +\usepackage{hyperref} +\hypersetup{ + colorlinks, + citecolor=black, + filecolor=black, + linkcolor=black, + urlcolor=black +} + +\usepackage{cleveref} + +%%% Custom headers/footers (fancyhdr package) +\usepackage{fancyhdr} +\pagestyle{fancyplain} +\fancyhead{} % No page header +\fancyfoot[L]{} % Empty +\fancyfoot[C]{\thepage} % Pagenumbering +\fancyfoot[R]{} % Empty +\renewcommand{\headrulewidth}{0pt} % Remove header underlines +\renewcommand{\footrulewidth}{0pt} % Remove footer underlines +\setlength{\headheight}{13.6pt} + +\usepackage[style=numeric,sorting=none,backend=biber]{biblatex} +\addbibresource{../main.bib} + +\title{ + \normalfont \normalsize \textsc{University of Surrey} \\ %[25pt] + \Huge Final year project \\ +} +\author{ + \normalfont \normalsize + Andre Henriques\\[-3pt] \normalsize + \today +} +\date{} + +%%% Begin document +\begin{document} + + \maketitle + \newpage + + \tableofcontents + \newpage + + \section{Introduction} + + \newpage + \section{References} + \printbibliography[heading=none] + + % TODO add my job title +\end{document}