forked from egraff/uit-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
76 lines (64 loc) · 2.24 KB
/
.cirrus.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
task:
environment:
deploy_key_secret: ENCRYPTED[9c49f44440c3bf6aa38b735b20a73b802af3312a213fa430303009b649682c2977b81d32311c868e0b0b58f77efad620]
deploy_key_salt: ENCRYPTED[3aa09ff4c8ef3a1a6a755a1b8be824f67344509eb5e8aa65609c2df20867bf1a4063c68e80bd95c43e10e68214adab6f]
submodules_script:
- git submodule update --init --recursive
matrix:
- name: "Linux - TeX Live 2022"
container:
dockerfile: ci/texlive-2022-linux.Dockerfile
env:
PROTODIR: proto_tl2022
- name: "Linux - TeX Live 2021"
container:
dockerfile: ci/texlive-2021-linux.Dockerfile
env:
PROTODIR: proto_tl2021
- name: "Linux - TeX Live 2020"
container:
dockerfile: ci/texlive-2020-linux.Dockerfile
env:
PROTODIR: proto_tl2020
- name: "Linux - TeX Live 2019"
container:
dockerfile: ci/texlive-2019-linux.Dockerfile
env:
PROTODIR: proto_tl2019
- name: "Linux - TeX Live 2018"
container:
dockerfile: ci/texlive-2018-linux.Dockerfile
env:
PROTODIR: proto_tl2018
decrypt_deploy_key_script: |
curl -sflL 'https://raw.githubusercontent.com/appveyor/secure-file/fc44f5c5f2fb184fe738814f373c16cb69c30929/install.sh' | bash -e -
if [ -z "$CIRRUS_PR" ]; then
echo "Decrypting deploy key"
mkdir -p "${HOME}/.ssh"
chmod 700 "${HOME}/.ssh"
appveyor-tools/secure-file -decrypt ci/cirrus-deploy-key.enc -secret ${deploy_key_secret} -salt ${deploy_key_salt} -out "${HOME}/.ssh/id_ed25519"
chmod 600 "${HOME}/.ssh/id_ed25519"
echo "Testing deploy key"
(ssh -o StrictHostKeyChecking=no -T [email protected] || true)
fi
install_script:
- pdfinfo -v
- compare -version
- gs -v
- pdflatex -version
- tlmgr conf
- make install CONTINUE=y
- texhash
test_script:
- make -C test PYTHON=python3 PROTODIR=${PROTODIR}
on_failure:
set_failure_result_code_script:
- echo "TEST_RESULT_CODE=1" >> $CIRRUS_ENV
always:
set_success_result_code_script: |
if [ -z "$TEST_RESULT_CODE" ]; then
echo "TEST_RESULT_CODE=0" >> $CIRRUS_ENV
fi
after_script:
- echo "Test result code: $TEST_RESULT_CODE"
- ci/cirrus_linux_after.sh $TEST_RESULT_CODE