chore: enabled drone ci
This commit is contained in:
parent
22b0abdba7
commit
b7f418ff76
66
.drone.yml
66
.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:
|
||||
|
65
projectsynopsis/project-synopsis.tex
Normal file
65
projectsynopsis/project-synopsis.tex
Normal file
@ -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}
|
Loading…
Reference in New Issue
Block a user