Verified Commit 30823d23 authored by Martin Isaksson's avatar Martin Isaksson
Browse files

Change latex docker image

This image used TeXLive 2017, so we also need to change some test cases.
parent aa64e230
Pipeline #144495754 failed with stages
in 5 minutes and 38 seconds
......@@ -16,7 +16,7 @@ figures:
expire_in: 1 week
compile:
image: martisak/reproducibleresearch
image: blang/latex:ctanfull
stage: build
script:
- make pdf
......
......@@ -5,7 +5,6 @@ LATEXMK=latexmk
LATEXMK_OPTIONS=-bibtex -pdf -pdflatex="pdflatex -interaction=nonstopmode"
DOCKER=docker
DOCKER_IMAGE=martisak/reproducibleresearch
DOCKER_COMMAND=run --rm -w /data/ --env LATEXMK_OPTIONS_EXTRA=$(LATEXMK_OPTIONS_EXTRA)
DOCKER_MOUNT=-v`pwd`:/data
......@@ -25,7 +24,7 @@ dist-clean: clean
-rm $(FILENAME).tar.gz
render:
$(DOCKER) $(DOCKER_COMMAND) $(DOCKER_MOUNT) $(DOCKER_IMAGE) \
$(DOCKER) $(DOCKER_COMMAND) $(DOCKER_MOUNT) blang/latex:ctanfull \
make pdf
check: $(PDF_OBJECTS)
......@@ -41,7 +40,7 @@ figures:
make -C /data/figures
debug:
$(DOCKER) $(DOCKER_COMMAND) -it $(DOCKER_MOUNT) $(DOCKER_IMAGE) \
$(DOCKER) $(DOCKER_COMMAND) -it $(DOCKER_MOUNT) blang/latex:ctanfull \
bash
check_docker: render
......
......@@ -28,9 +28,9 @@ describe 'LaTeX PDF' do
expect(reader.pages[0].text).to match('Lorem ipsum dolor sit amet')
end
it 'last page should contain reference' do
expect(reader.pages[1].text).to match('References')
expect(reader.pages[0].text).to match('References')
end
it 'last page should contain reference' do
expect(reader.pages[1].text).to match('Knuth')
expect(reader.pages[0].text).to match('Knuth')
end
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment