From f5fca6d4f0b0b07adf2cdada0d1397c7a092582b Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Sun, 10 Feb 2019 01:52:14 -0500 Subject: [PATCH] CI for Soviet Russia --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ Makefile | 19 +++++++++++++++++++ index.html | 13 +++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Makefile create mode 100644 index.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a049c5a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +stages: + - build + - publish + +image: registry.gitlab.com/adehnert/gametex-deps-docker:latest + +build game: + stage: build + script: + - apt-get update && apt-get install -y texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-pstricks python3 make + - make install + - mkdir artifacts + - cp faq.pdf style-guide.pdf artifacts/ && cp tea/rating.pdf artifacts/tea-rating.pdf + + artifacts: + paths: + - artifacts/ + expire_in: 1 week + +pages: + # "pages" job name is special, and triggers creation of GitLab pages: + # https://gitlab.com/help/user/project/pages/getting_started_part_four.md + stage: publish + script: + - mkdir -p public + - cp artifacts/*.pdf index.html public/ + + artifacts: + paths: + - public + expire_in: 1 month + + only: + - master + - pages-test diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..00059cf --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +SOURCES=$(wildcard *.tex) tea/rating.tex +OUTPUTS=$(SOURCES:.tex=.pdf) + +all : $(OUTPUTS) + +clean : + rm $(OUTPUTS) *.aux *.log tea/*.aux tea/*.log + +%.pdf : %.tex + cd $(@D) && pdflatex -halt-on-error $( + + Soviet Russia + + +

Soviet Russia

+ + + -- 2.34.1