Skip to content

Commit

Permalink
copy out al 2-texlive-pdflatex folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-neal committed Jun 29, 2018
1 parent de61aa5 commit d48a5f9
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
before_install:
- sudo apt-get install python-pygments
install:
- source ./2-texlive-pdflatex/texlive_install.sh
- source ./texlive_install.sh
cache:
directories:
- /tmp/texlive
Expand Down
10 changes: 10 additions & 0 deletions texlive/texlive.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
selected_scheme scheme-basic
TEXDIR /tmp/texlive
TEXMFCONFIG ~/.texlive/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL /tmp/texlive/texmf-local
TEXMFSYSCONFIG /tmp/texlive/texmf-config
TEXMFSYSVAR /tmp/texlive/texmf-var
TEXMFVAR ~/.texlive/texmf-var
option_doc 0
option_src 0
103 changes: 103 additions & 0 deletions texlive_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#!/usr/bin/env sh

# Originally from https://github.com/latex3/latex3

# This script is used for testing using Travis
# It is intended to work on their VM set up: Ubuntu 12.04 LTS
# A minimal current TL is installed adding only the packages that are
# required

# See if there is a cached version of TL available
export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
if ! command -v texlua > /dev/null; then
# Obtain TeX Live
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20*

# Install a minimal system
./install-tl --profile=../texlive/texlive.profile

cd ..
fi

# Just including texlua so the cache check above works
# Needed for any use of texlua even if not testing LuaTeX
tlmgr install luatex

# Needed for TeX Live 2017
tlmgr install xkeyval

# A kind of minimum set of packages needed
tlmgr install collection-latex

# Install babel languages
tlmgr install collection-langeuropean

# Index of packages: http://ctan.mirrors.hoobly.com/systems/texlive/tlnet/archive/
# Other contrib packages: done as a block to avoid multiple calls to tlmgr
# pgf includes tikz
tlmgr install \
exam \
amsmath \
amsthm \
amssymb \
mathtools \
enumerate \
thmtools \
stmaryrd \
xcolor \
pdfpages \
centernot \
pgf \
cancel \
hyperref \
bookmark \
pgfplots \
bm \
listings \
graphicx \
scalerel \
stackengine \
etoolbox \
listofitems \
marvosym \
amsfonts \
opensans \
slantsc \
fancyhdr \
ulem \
algorithms \
algorithmicx \
float \
booktabs \
enumitem \
polynom \
fancyvrb \
makecmds \
multirow \
chngcntr \
fvextra \
upquote \
lineno \
ifplatform \
xstring \
framed \
caption \
collection-fontsrecommended \
minted \
pgfgantt \
pdflscape \
geometry \
longtable \
beamer \
translator \
environ \
trimspaces \
imakeidx

# Keep no backups (not required, simply makes cache bigger)
tlmgr option -- autobackup 0

# Update the TL install but add nothing new
tlmgr update --self --all --no-auto-install

4 comments on commit d48a5f9

@PHPirates
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this build failing because the mirror which was selected to download texlive from has problems? Does restarting the build (since some time has passed since the build) make it work?
I wonder if it may be sometimes needed to specify a download mirror manually, if tlmgr auto-select selects a broken mirror.

@PHPirates
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@jason-neal
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A restart seemed to work.

What I am trying to do is fix up the package list in the install there are many missing packaged/incorrectly named. for instance they give.
tlmgr install: package graphicx not present in repository

@PHPirates
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah you're right indeed! I'll keep an eye on your repo or you can send a PR back if you have cleaned it. Thanks for noticing :)

Please sign in to comment.