-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker container for Travis CI (#150)
* Add a clean-all command for removing all nonessential files including including aux, dep, dvi, postscript and pdf files. * Fix 2 bugs, documented in the Dockerfile * Build the Docker Image from the Dockerfile * Fix typo * Remove metadata
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
sudo: required | ||
dist: trusty | ||
services: | ||
- docker | ||
before_install: | ||
- sudo add-apt-repository ppa:jonathonf/texlive-2016 -y | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y --no-install-recommends texlive-base texlive-fonts-recommended texlive-generic-extra texlive-latex-recommended texlive-latex-extra texlive-math-extra latexmk | ||
- docker build -t openlogic . | ||
script: | ||
- latexmk -dvi- -pdf --pdflatex="pdflatex -interaction nonstopmode -halt-on-error" open-logic-debug.tex | ||
- docker run openlogic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Use ubuntu trusty as the base image | ||
FROM ubuntu:trusty | ||
|
||
# Add a backport of TeX Live 2016 packages, for LTS releases, to the apt sources | ||
RUN echo -e '\ndeb http://ppa.launchpad.net/jonathonf/texlive-2016/ubuntu trusty main\ndeb-src http://ppa.launchpad.net/jonathonf/texlive-2016/ubuntu trusty main' /etc/apt/sources.list | ||
|
||
# Install dependencies for building the open-logic-debug.pdf file | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
texlive-base \ | ||
texlive-fonts-recommended \ | ||
texlive-generic-extra \ | ||
texlive-latex-recommended \ | ||
texlive-latex-extra \ | ||
texlive-math-extra \ | ||
latexmk \ | ||
|
||
# Additionally install these to packages to fix a bug saying tikz.sty is missing | ||
texlive-pictures \ | ||
pgf | ||
|
||
# Set the working directory to wd and copy the git repository into it | ||
WORKDIR /wd | ||
VOLUME ["/wd"] | ||
COPY . . | ||
|
||
# This is used to fix a bug saying gitinfo2.sty cannot be found | ||
ADD http://www.pirbot.com/mirrors/ctan/macros/latex/contrib/gitinfo2/gitinfo2.sty gitinfo2.sty | ||
|
||
# Try generating open-logic-debug.pdf | ||
CMD ["latexmk", "-dvi-", "-pdf", "-pdflatex=pdflatex -interaction nonstopmode -halt-on-error", "open-logic-debug.tex"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters