Skip to content

Commit 4612d3b

Browse files
committed
Wrap tests in xvfb-run to simulate an X server.
1 parent 916ca38 commit 4612d3b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ jobs:
3636

3737
- name: Run tests in Docker image
3838
run: make docker-test
39+

.tools/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ RUN apt-get -q --no-allow-insecure-repositories update \
3838
texlive-pictures \
3939
texlive-plain-generic \
4040
texlive-xetex \
41-
wget
41+
wget \
42+
xvfb
4243

4344
ARG plantuml_jar=plantuml.1.2018.9.jar
4445
RUN wget https://sourceforge.net/projects/plantuml/files/${plantuml_jar} \

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ LUA_FILTERS_TEST_IMAGE = pandoc/lua-filters-test
77
test:
88
sh runtests.sh $(FILTERS)
99

10+
test-docker:
11+
xvfb-run sh runtests.sh $(FILTERS)
12+
1013
archive: .build/lua-filters.tar.gz
1114

1215
archives: .build/lua-filters.tar.gz .build/lua-filters.zip
@@ -20,7 +23,7 @@ docker-test:
2023
--rm \
2124
--volume "$(PWD):/data" \
2225
--entrypoint /usr/bin/make \
23-
$(LUA_FILTERS_TEST_IMAGE) FILTERS="${FILTERS}"
26+
$(LUA_FILTERS_TEST_IMAGE) FILTERS="${FILTERS}" test-docker
2427

2528
docker-test-image: .tools/Dockerfile
2629
docker build --tag $(LUA_FILTERS_TEST_IMAGE) --file $< .

0 commit comments

Comments
 (0)