From 0db1e213dc6088c3c75444f22f3adf9af02e2c13 Mon Sep 17 00:00:00 2001
From: Michael Bredel <michael@bredel.at>
Date: Sun, 12 Nov 2017 01:19:45 +0100
Subject: [PATCH] Moved to use an Ubuntu Docker container

Since Travis-CI only supports Ubuntu 14.04 which is not compatible with the current thesis-template version, we move to an Ubuntu Docker container to test the LaTeX code.
---
 .travis.yml | 17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index f2be364..017b291 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,18 +3,9 @@ dist: trusty
 branches:
   only:
     - master
+services:
+  - docker
 before_install:
-  - sudo apt-get -qq update
-  - sudo apt-get install -y --no-install-recommends texlive 
-  - sudo apt-get install -y --no-install-recommends texlive-bibtex-extra
-  - sudo apt-get install -y --no-install-recommends texlive-fonts-extra
-  - sudo apt-get install -y --no-install-recommends texlive-lang-english
-  - sudo apt-get install -y --no-install-recommends texlive-lang-german
-  - sudo apt-get install -y --no-install-recommends texlive-latex-extra
-  - sudo apt-get install -y --no-install-recommends texlive-math-extra
-  - sudo apt-get install -y --no-install-recommends texlive-publishers
-  - sudo apt-get install -y --no-install-recommends texlive-science
+  - docker pull ubuntu:16.04
 script:
-  - pdflatex -interaction=nonstopmode -halt-on-error thesis.tex
-  - test -f thesis-blx.bib && ( bibtex thesis; pdflatex thesis.tex ) 
-  - pdflatex -interaction=nonstopmode -halt-on-error thesis.tex
+  - docker run ubuntu:16:04