Skip to content

Instantly share code, notes, and snippets.

@MayMeow
Created May 25, 2016 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MayMeow/ba3e2756e2120eb86b7da86f7226f95c to your computer and use it in GitHub Desktop.
Save MayMeow/ba3e2756e2120eb86b7da86f7226f95c to your computer and use it in GitHub Desktop.
Full Latex Image and Gitlab CI file to generate books with Mathgen.
image: latex-full:latest
variables:
GIT_SSL_NO_VERIFY: "true"
cache:
paths:
- vendor
pages:
tags:
# use gitlabcafe runner
- gitlabcafe
script:
- apt-get update -yqqq
- apt-get install -y bibtex2html bibtexconv zip
- mkdir public
# to use this you have to download and unzip MATHGEN sources to your repository
# After success build go to builds and download your book.
- chmod +x mathgen.pl
- ./mathgen.pl --product=book --mode=zip --output=public/my_book.zip --author="Teresa Alexander" --author="Louis Lemoine"
artifacts:
name: "${CI_BUILD_NAME}_${CI_BUILD_REF}"
paths:
- public
only:
- master
FROM ubuntu:latest
MAINTAINER GitLab.cafe <admin@gitlab.cafe>
RUN apt-get update && apt-get install -y texlive-full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment