Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed Oct 7, 2020
1 parent 0ac14c8 commit 4e4214b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ install:

script:
# run kitchen tests (destroy, create, converge, setup, verify and destroy)
- travis_wait 30 kitchen test
- travis_wait 40 kitchen test
12 changes: 9 additions & 3 deletions roles/latex/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
become: true
become_user: zds
unarchive:
src: http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
src: "{{ texlive_repository }}/install-tl-unx.tar.gz"
dest: "{{ workdir }}"
remote_src: yes
tags:
Expand All @@ -21,14 +21,20 @@
become: true
become_user: zds
shell: |
if [ -d "{{ texlive_dir }}/bin" ]; then
if [ -e installation.profile ]; then
./install-tl*/install-tl -v --repository {{ texlive_repository }} --profile installation.profile
elif [ -d "{{ texlive_dir }}/bin" ]; then
echo "TeXLive is already installed"
else
./install-tl*/install-tl -v -profile texlive.profile
./install-tl*/install-tl -v --repository {{ texlive_repository }} --profile texlive.profile
fi
args:
executable: /bin/bash
chdir: "{{ workdir }}"
register: this
until: this is succeeded
delay: 5
retries: 5
notify: remove texlive installation files
tags:
- bootstrap
Expand Down
1 change: 1 addition & 0 deletions roles/latex/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
texlive_dir: "{{ workdir }}/texlive"
texlive_binaries: "{{ texlive_dir }}/bin/x86_64-linux"
texlive_repository: "https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet"
template_dir: "{{ texlive_dir }}/texmf-dist/tex/generic/latex-template"

fonttypes:
Expand Down

0 comments on commit 4e4214b

Please sign in to comment.