Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Mar 1, 2018
1 parent 8009f79 commit 28f7d2d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
30 changes: 19 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,32 @@ branches:
# Set the language
language: bash

# Set the environment path to include Pandoc binaries
os: osx

env:
global:
- PATH=$TRAVIS_BUILD_DIR/usr/bin/:$PATH
- PATH=/Library/TeX/texbin:$PATH


before_install:
# Fetch pandoc and pandoc-citeproc binaries
- wget https://github.com/jgm/pandoc/releases/download/1.15.0.5/pandoc-1.15.0.5-1-amd64.deb && ar p pandoc-1.15.0.5-1-amd64.deb data.tar.gz | tar zx
# Install TeX Live
- sudo add-apt-repository -y ppa:texlive-backports/ppa
- sudo apt-get update -qq
- sudo apt-get install texlive-xetex texlive-latex-recommended texlive-latex-extra
- sudo apt-get install texlive-fonts-recommended texlive-fonts-extra
- sudo apt-get install texlive-science
# Install fonts
- sudo apt-get install lmodern
# # Fetch pandoc and pandoc-citeproc binaries
# - wget https://github.com/jgm/pandoc/releases/download/1.15.0.5/pandoc-1.15.0.5-1-amd64.deb && ar p pandoc-1.15.0.5-1-amd64.deb data.tar.gz | tar zx
# # Install TeX Live
# - sudo add-apt-repository -y ppa:texlive-backports/ppa
# - sudo apt-get update -qq
# - sudo apt-get install texlive-xetex texlive-latex-recommended texlive-latex-extra
# - sudo apt-get install texlive-fonts-recommended texlive-fonts-extra
# - sudo apt-get install texlive-science
# # Install fonts
# - sudo apt-get install lmodern
- brew install pandoc
- brew install pandoc-citeproc
- brew cask install mactex
- tlmgr info fontspec

# Attempt to create a PDF
script:
- make pdf
- cat pandoc.log
- make html
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ pdf:
--highlight-style pygments \
-V fontsize=12pt \
-V papersize=a4paper \
-V documentclass:report \
-V documentclass=report \
-N \
--pdf-engine=xelatex
--pdf-engine=xelatex \
--verbose

tex:
pandoc "$(INPUTDIR)"/*.md \
Expand All @@ -45,7 +46,7 @@ tex:
--bibliography="$(BIBFILE)" \
-V fontsize=12pt \
-V papersize=a4paper \
-V documentclass:report \
-V documentclass=report \
-N \
--csl="$(STYLEDIR)/ref_format.csl" \
--latex-engine=xelatex
Expand Down

0 comments on commit 28f7d2d

Please sign in to comment.