-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest.compose.yaml
49 lines (41 loc) · 961 Bytes
/
test.compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
sut:
image: alpine
command: "true"
depends_on:
sut1:
condition: service_completed_successfully
sut2:
condition: service_completed_successfully
sut1:
image: ${IMAGE_ID}:${VERSION}-minimal
command: |
sh -c '
set -e
# check if some basic commands work
tlmgr --version
pdftex -v
tex -v
bibtex -v
# check if installation works correctly
latexmk -v && exit 1
tlmgr install latexmk
latexmk -v || exit 1
echo Tests passed!
'
sut2:
image: ${IMAGE_ID}:${VERSION}-basic
command: |
sh -c '
set -e
cd /tmp
echo "\documentclass[12pt]{article}" > main.tex
echo "\begin{document}" >> main.tex
echo "test" >> main.tex
echo "\end{document}" >> main.tex
cat main.tex
tlmgr install latexmk
latexmk -pdf main.tex
ls main.pdf
echo Tests passed!
'