- Download all the files to the repo
utilities/travis_setup.sh
utilities/texlive.profile
.travis.yml
- Travis setup for github releases
travis setup release
-
Turn on travis CI
-
Tag and commit
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 |
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 |