diff --git a/.github/workflows/template.yml b/.github/workflows/template.yml new file mode 100644 index 0000000..0e92bdc --- /dev/null +++ b/.github/workflows/template.yml @@ -0,0 +1,14 @@ +on: [push, pull_request] + +name: template + +jobs: + test-latex-template: + runs-on: ubuntu-20.04 + name: Test LaTeX Template + steps: + - uses: actions/checkout@v2 + - name: Build + run: | + docker pull mbredel/thesis-template:latest + docker run --volume $(pwd):/thesis-template/ mbredel/thesis-template:latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d96fbdf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -sudo: required -dist: trusty -branches: - only: - - master -services: - - docker -before_install: - - docker pull mbredel/thesis-template:latest -script: - - docker run --volume $(pwd):/thesis-template/ mbredel/thesis-template:latest diff --git a/Dockerfile.travis b/Dockerfile.ci similarity index 100% rename from Dockerfile.travis rename to Dockerfile.ci diff --git a/README.md b/README.md index f5c8e03..7f702d9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/mbredel/thesis-template.svg?branch=master)](https://travis-ci.org/mbredel/thesis-template) +[![Build Status](https://github.com/mbredel/thesis-template/workflows/template/badge.svg)](https://github.com/mbredel/thesis-template/actions) # A thesis LaTeX-template @@ -199,7 +199,7 @@ generates a bz2-package file, which contains all the source files of your LaTeX ### Using Docker -The h_da thesis template ships with two Dockerfiles that create [Docker](https://www.docker.com) container used to compile the LaTeX code. One container - build by the [Dockerfile.travis]( https://github.com/mbredel/thesis-template/blob/master/Dockerfile.travis) Docker file - is used by the Travis-CI infrastructure to compile the thesis template and check its integrity at every commit. The other one - created by the [Dockerfile.local](https://github.com/mbredel/thesis-template/blob/master/Dockerfile.local) Docker file - might be used to build the Docker container that allows to compile the LaTeX code on your local machine without the need to install any LaTeX files. +The h_da thesis template ships with two Dockerfiles that create [Docker](https://www.docker.com) container used to compile the LaTeX code. One container - build by the [Dockerfile.ci]( https://github.com/mbredel/thesis-template/blob/master/Dockerfile.ci) Docker file - is used by the CI to compile the thesis template and check its integrity at every commit. The other one - created by the [Dockerfile.local](https://github.com/mbredel/thesis-template/blob/master/Dockerfile.local) Docker file - might be used to build the Docker container that allows to compile the LaTeX code on your local machine without the need to install any LaTeX files. On order to build the Docker image you have to type the following command: @@ -207,7 +207,7 @@ On order to build the Docker image you have to type the following command: $ docker build --tag mbredel/thesis-template --file Dockerfile.local . ``` -Creating the image requires a working (and hopefully fast) Internet connection. It may take several minutes to download the required base-images as well as all needed dependencies. You only have to create the image once. When the image is build, you can run the Docker container by executing the following commad +Creating the image requires a working (and hopefully fast) Internet connection. It may take several minutes to download the required base-images as well as all needed dependencies. You only have to create the image once. When the image is build, you can run the Docker container by executing the following command ``` $ docker run --volume $(pwd):/thesis-template/ mbredel/thesis-template && docker rm $(docker ps -lq)