M .build.yml => .build.yml +8 -8
@@ 12,17 12,17 @@ environment:
tasks:
- compile: |
cd $cv
- pdflatex -file-line-error -interaction nonstopmode document.tex
- echo ""
+ pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
biber document
- texfot pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
- echo ""
+ pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
texfot pdflatex -file-line-error -interaction nonstopmode document.tex
mv document.pdf ../cv_es.pdf
-# mv document.pdf ../cv_en.pdf
-# git checkout spanish
-# compilation steps
-# mv document.pdf ../cv_es.pdf
+ ./switch-language.sh
+ pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
+ biber document
+ texfot pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
+ texfot pdflatex -file-line-error -interaction nonstopmode document.tex
+ mv document.pdf ../cv_en.pdf
- package: |
tar -cvz cv_*.pdf > site.tar.gz
- upload: |
A switch-language.sh => switch-language.sh +4 -0
@@ 0,0 1,4 @@
+#!/bin/sh
+
+sed -i 's/spanish/english/' document.tex
+sed -i 's/cv_es.tex/cv_en.tex/' document.tex