mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-11-14 18:48:30 +00:00
dependencies installed on a script
This commit is contained in:
parent
50cc9534c6
commit
8d077c14ea
3 changed files with 20 additions and 8 deletions
|
@ -2,18 +2,13 @@ image: najeraoscar/latex-emacs-min
|
|||
|
||||
test:
|
||||
script:
|
||||
- apt-get update && apt install -y wget git
|
||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.39/hugo_0.39_Linux-64bit.deb
|
||||
- dpkg -i hugo*.deb
|
||||
- hugo version
|
||||
- git clone https://github.com/Titan-C/AltaCV.git /root/texmf/tex/latex/AltaCV
|
||||
- emacs --batch --load /tmp/install-org.el
|
||||
- ./installs.sh
|
||||
- emacs --batch -Q --script genfiles.el
|
||||
- cd org-cv-exports; latex -pdf altacv.org.tex
|
||||
- cd doc; hugo
|
||||
except:
|
||||
- master
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- org-cv-exports
|
||||
- doc/public
|
||||
|
|
|
@ -25,8 +25,10 @@
|
|||
(find-file workfile)
|
||||
(org-mode)
|
||||
(org-export-to-file 'altacv outfile)
|
||||
(shell-command (format "latexmk -pdf %s" outfile))
|
||||
(shell-command (format "pdflatex %s" outfile))
|
||||
(copy-file (concat file ".pdf") cwd)
|
||||
))
|
||||
|
||||
(export-latex "altacv.org")
|
||||
(export-latex "moderncv.org")
|
||||
(copy-directory workdir cwd)
|
||||
|
|
15
installs.sh
Executable file
15
installs.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v0.39/hugo_0.39_Linux-64bit.deb
|
||||
dpkg -i hugo*.deb
|
||||
hugo version
|
||||
|
||||
# Latex
|
||||
apt-get update && apt install -y fonts-font-awesome
|
||||
git clone https://github.com/Titan-C/AltaCV.git /root/texmf-dist/tex/latex/AltaCV
|
||||
wget http://mirrors.ctan.org/fonts/fontawesome/tex/fontawesome.sty
|
||||
wget http://mirrors.ctan.org/fonts/fontawesome/tex/fontawesomesymbols-generic.tex
|
||||
wget http://mirrors.ctan.org/fonts/fontawesome/tex/fontawesomesymbols-pdftex.tex
|
||||
|
||||
emacs --batch --load /tmp/install-org.el
|
||||
cd org-cv-exports; latex -pdf altacv.org.tex
|
Loading…
Reference in a new issue