forked from rstudio/tinytex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
148 lines (126 loc) · 4.08 KB
/
appveyor.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
image:
- Visual Studio 2019
- macOS
- Ubuntu
skip_branch_with_pr: true
environment:
CTAN_REPO: https://ctan.math.illinois.edu/systems/texlive/tlnet
GITHUB_PAT:
secure: I8LpQZGeTQzw9wAWakdWI66i917ZRWhrh7QzmwvOX7qQPZk9B0Ri5nua1rb8dxii
after_test:
- Rscript tools/build-tinitex.R
- sh: rm *.Rproj
- cmd: del *.Rproj
artifacts:
- path: tinitex.*
name: tinitex binary
- path: TinyTeX-0.*
name: TinyTeX (infraonly)
- path: TinyTeX-1.*
name: TinyTeX (rmarkdown)
- path: TinyTeX.*
name: TinyTeX
- path: installer*
name: TinyTeX installer
- path: regex.tar.gz
name: Regex for LaTeX errors
deploy:
tag: daily
release: TinyTeX daily build
description: >
This release contains the daily build of TinyTeX${CURRENT_DATE}.
Please see https://github.com/yihui/tinytex-releases for more info.
provider: GitHub
auth_token:
secure: JAcCR9O77GYd9mpnPTpLcv2slw0f0mOz/OkeCk+nKZIMwKJSAtuBt3x8WfsfDL6Z
repository: yihui/tinytex-releases
artifact: /.*/
prerelease: true
force_update: true
for:
-
matrix:
only:
- image: Visual Studio 2019
init:
- ps: |
$ErrorActionPreference = "Stop"
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Import-Module '..\appveyor-tool.ps1'
install:
ps: Bootstrap
cache:
- C:\RLibrary
build_script:
- set PATH=%PATH:C:\MinGW\msys\1.0\bin;=%
before_test:
- choco install pandoc --version 2.14.0.3
- pandoc -v
test_script:
- set PATH=%APPDATA%\TinyTeX\bin\win32;%PATH%
- Rscript tools/config.R
- Rscript "tools/install-windows-base.R" # the infraonly scheme
- ps: Compress-Archive $Env:APPDATA\\TinyTeX TinyTeX-0.zip
- travis-tool.sh install_deps
- Rscript tools/update.R
- R CMD INSTALL .
- Rscript "tools/install-windows-more.R" # extra packages for compiling R Markdown
- ps: Compress-Archive $Env:APPDATA\\TinyTeX TinyTeX-1.zip
- Rscript "tools/test-basic.R" # even more LaTeX packages
- ps: Compress-Archive $Env:APPDATA\\TinyTeX TinyTeX.zip
- travis-tool.sh run_tests
- set TINYTEX_INSTALLER=TinyTeX-0
- echo | tools\install-bin-windows.bat
-
matrix:
only:
- image: macOS
cache:
- $HOME/R
install:
- brew install pandoc > /dev/null
- brew install --cask r
- Rscript tools/config.R
- Rscript -e "install.packages('tinytex', dependencies = TRUE)"
- Rscript tools/update.R
- R CMD INSTALL .
build_script:
- sed -i '' 's|# finished base|Rscript "${APPVEYOR_BUILD_FOLDER}/tools/clean-tlpdb.R"; tar zcf "${APPVEYOR_BUILD_FOLDER}/TinyTeX-0.tgz" -C ~/Library TinyTeX|' tools/install-unx.sh
- ./tools/install-unx.sh
- Rscript "tools/clean-tlpdb.R"
- tar zcf TinyTeX-1.tgz -C ~/Library TinyTeX
test_script:
- Rscript "tools/test-basic.R"
- tar zcf TinyTeX.tgz -C ~/Library TinyTeX
- TINYTEX_INSTALLER=TinyTeX-0 ./tools/install-bin-unix.sh
-
matrix:
only:
- image: Ubuntu
cache:
- $HOME/R
install:
- sudo apt -qq update > /dev/null
- sudo apt -qq -y install r-base-dev pandoc > /dev/null
- Rscript tools/config.R
- Rscript -e "install.packages('tinytex', dependencies = TRUE)"
- Rscript tools/update.R
- R CMD INSTALL .
build_script:
- export CURRENT_DATE=" ($(date))"
- sed -i 's|# finished base|cp $OLDPWD/install-tl-unx.tar.gz tools/; Rscript tools/clean-tlpdb.R; tar zcf TinyTeX-0.tar.gz -C ~ .TinyTeX|' tools/install-unx.sh
- ./tools/install-unx.sh
- Rscript "tools/clean-tlpdb.R"
- tar zcf TinyTeX-1.tar.gz -C ~ .TinyTeX
test_script:
- export PATH="$HOME/bin:$PATH"
- Rscript "tools/test-basic.R"
- tar zcf TinyTeX.tar.gz -C ~ .TinyTeX
- Rscript "tools/export-regex.R"
- tar zcf regex.tar.gz regex.json
- cd tools
- cp install-base.sh install.sh
- echo "tlmgr install $(cat pkgs-custom.txt | tr '\n' ' ')" >> install.sh
- tar zcf ../installer-unix.tar.gz install-tl-unx.tar.gz tinytex.profile install.sh
- cd ..
- TINYTEX_INSTALLER=TinyTeX-0 ./tools/install-bin-unix.sh