Skip to content

Commit

Permalink
Merge pull request #12 from kolosovpetro/azure-pipelines
Browse files Browse the repository at this point in the history
Azure pipelines
  • Loading branch information
kolosovpetro committed Nov 16, 2023
2 parents f956109 + 1d19da4 commit fc265ce
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
## Generated if empty string is given at "Please type another file name for output:"
.idea/
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
#*.bbl
*.bcf
*.blg
#*.blg
*-blx.aux
*-blx.bib
*.run.xml
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

LaTeX template for GitHub including general CI/CD actions and Mathematica templates.

- https://dev.azure.com/PetroKolosovProjects/github-latex-template

## Build and run in Intellij IDEA

- Install `MikTeX`: https://miktex.org/download
Expand Down
78 changes: 78 additions & 0 deletions azure-pipelines/azure-pipelines-linux-mshosted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
trigger:
- master
- main
- develop

variables:
- name: 'vmImageName'
value: 'ubuntu-latest'

- name: 'System.Debug'
value: 'true'

- name: StageName
value: 'LaTeX_Build_Ubuntu_Latest'

- name: LatexFileName
value: 'GithubLatexTemplate'

- name: LatexFilePath
value: '$(System.DefaultWorkingDirectory)/src/$(LatexFileName).tex'

- name: OutputDirectory
value: '$(System.DefaultWorkingDirectory)/out'

stages:
- stage: ${{ variables.StageName }}
displayName: ${{ variables.StageName }}
jobs:
- job: ${{ variables.StageName }}
displayName: ${{ variables.StageName }}
pool:
vmImage: ${{ variables.vmImageName }}

steps:
- checkout: self
fetchDepth: 0

- task: gitversion/setup@0
displayName: 'GitVersion Setup'
inputs:
versionSpec: '5.9.x'

- task: gitversion/execute@0
displayName: 'GitVersion Execute'

- bash: echo $Action$BuildVersion
displayName: 'Set Build Version'
env:
Action: '##vso[build.updatebuildnumber]'
BuildVersion: '$(GitVersion.SemVer)'

- bash: |
sudo apt-get install texlive
displayName: 'Install TeXLive'
- bash: |
sudo mkdir -p $(OutputDirectory)
sudo chmod -R 775 $(OutputDirectory)
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Create Output Directory'
- bash: |
echo "Compiling LaTeX document first time ..."
pdflatex -file-line-error -interaction=nonstopmode -synctex=1 -output-format=pdf \
-output-directory=$(OutputDirectory) \
-aux-directory=$(OutputDirectory) GithubLatexTemplate.tex
echo "Compiling LaTeX document second time ..."
pdflatex -file-line-error -interaction=nonstopmode -synctex=1 -output-format=pdf \
-output-directory=$(OutputDirectory) \
-aux-directory=$(OutputDirectory) GithubLatexTemplate.tex
workingDirectory: '$(System.DefaultWorkingDirectory)/src'
displayName: 'Build Document'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(OutputDirectory)'
artifact: '$(LatexFileName)_$(GitVersion.SemVer)'
publishLocation: 'pipeline'
37 changes: 37 additions & 0 deletions out/GithubLatexTemplate.bbl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
\begin{thebibliography}{1}

\bibitem{bayour2017truly}
Benaoumeur Bayour, Ahmed Hammoudi, and Delfim~FM Torres.
\newblock A truly conformable calculus on time scales.
\newblock {\em arXiv preprint arXiv:1705.08928}, 2017.
\newblock \url {https://arxiv.org/abs/1705.08928}.

\bibitem{benkhettou2016conformable}
Nadia Benkhettou, Salima Hassani, and Delfim~FM Torres.
\newblock A conformable fractional calculus on arbitrary time scales.
\newblock {\em Journal of King Saud University-Science}, 28(1):93--98, 2016.

\bibitem{caputo2009time}
M~Cristina Caputo.
\newblock Time scales: from nabla calculus to delta calculus and vice versa via
duality.
\newblock {\em arXiv preprint arXiv:0910.0085}, 2009.

\bibitem{martins2009calculus}
Nat {\'a}~lia Martins and Delfim~FM Torres.
\newblock Calculus of variations on time scales with nabla derivatives.
\newblock {\em Nonlinear Analysis: Theory, Methods \& Applications},
71(12):e763--e773, 2009.

\bibitem{GithubSource_2022}
Petro Kolosov.
\newblock {"Github Template" Source files}.
\newblock Available electronically at \url
{https://github.com/kolosovpetro/github-latex-template}, 2022.

\bibitem{Sloane_theencyclopedia}
N.~J.~A. Sloane.
\newblock The on-line encyclopedia of integer sequences.
\newblock published electronically at \url {https://oeis.org}, 1964.

\end{thebibliography}
48 changes: 48 additions & 0 deletions out/GithubLatexTemplate.blg
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
This is BibTeX, Version 0.99d
Capacity: max_strings=200000, hash_size=200000, hash_prime=170003
The top-level auxiliary file: GithubLatexTemplate.aux
Reallocating 'name_of_file' (item size: 1) to 6 items.
The style file: unsrt.bst
Reallocating 'name_of_file' (item size: 1) to 20 items.
Database file #1: GithubLatexTemplate.bib
You've used 6 entries,
1791 wiz_defined-function locations,
482 strings with 4590 characters,
and the built_in function-call counts, 1069 in all, are:
= -- 95
> -- 42
< -- 0
+ -- 17
- -- 11
* -- 56
:= -- 182
add.period$ -- 19
call.type$ -- 6
change.case$ -- 6
chr.to.int$ -- 0
cite$ -- 6
duplicate$ -- 44
empty$ -- 113
format.name$ -- 11
if$ -- 233
int.to.chr$ -- 0
int.to.str$ -- 6
missing$ -- 4
newline$ -- 34
num.names$ -- 6
pop$ -- 19
preamble$ -- 1
purify$ -- 0
quote$ -- 0
skip$ -- 19
stack$ -- 0
substring$ -- 50
swap$ -- 6
text.length$ -- 0
text.prefix$ -- 0
top$ -- 0
type$ -- 0
warning$ -- 0
while$ -- 10
width$ -- 7
write$ -- 66
Binary file modified out/GithubLatexTemplate.pdf
Binary file not shown.

0 comments on commit fc265ce

Please sign in to comment.