Skip to content

Instantly share code, notes, and snippets.

@skulumani
Last active August 4, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skulumani/bf96ddea28c0a4d70288bdd2a6975f2e to your computer and use it in GitHub Desktop.
Save skulumani/bf96ddea28c0a4d70288bdd2a6975f2e to your computer and use it in GitHub Desktop.
Travis LaTeX setup
sudo: false
language: generic
matrix:
include:
- os: linux
git:
depth: false
cache:
directories:
- "/tmp/texlive"
- "$HOME/.texlive"
before_install:
- bash ./utilities/travis_setup.sh
- export PATH="/tmp/texlive/bin/x86_64-linux:$PATH"
script:
- latexmk -pdf -interaction=nonstopmode manuscript.tex
deploy:
provider: releases
api_key:
secure: key
file:
- "manuscript.pdf"
skip_cleanup: true
on:
repo: skulumani/manuscript
tags: true
all_branches: true
  1. Download all the files to the repo
utilities/travis_setup.sh
utilities/texlive.profile
.travis.yml
  1. Travis setup for github releases
travis setup release
  1. Turn on travis CI

  2. Tag and commit

selected_scheme scheme-full
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
#!/bin/bash
# setup script to install texlive and add to path
sudo apt-get -qq update
export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
if ! command -v pdflatex > /dev/null; then
echo "Texlive not installed"
echo "Downloading texlive and installing"
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
./install-tl-*/install-tl --profile=./utilities/texlive.profile
echo "Finished install TexLive"
fi
echo "Now updating TexLive"
# update texlive
tlmgr option -- autobackup 0
tlmgr update --self --all --no-auto-install
echo "Finished updating TexLive"
echo "Cloning texmf tree to path"
git clone https://github.com/skulumani/texmf.git ~/texmf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment