forked from rstudio/tinytex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
99 lines (78 loc) · 2.05 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
image:
- macOS
- Ubuntu
- Visual Studio 2019
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;=%
- echo | tools\install-windows.bat
- Rscript -e "update.packages(ask = FALSE, checkBuilt = TRUE, repos = 'https://cran.rstudio.com')"
before_test:
- choco install pandoc --version 2.7.3
- pandoc -v
test_script:
- set PATH=%APPDATA%\TinyTeX\bin\win32;%PATH%
- travis-tool.sh install_deps
- R CMD INSTALL .
- Rscript "tools/test-basic.R"
- ps: Compress-Archive $Env:APPDATA\\TinyTeX TinyTeX.zip
- travis-tool.sh run_tests
- Rscript -e "tinytex::install_tinytex(force = TRUE)"
artifacts:
- path: TinyTeX.zip
name: TinyTeX
-
matrix:
only:
- image: macOS
cache:
- $HOME/R
init:
- brew install pandoc pandoc-citeproc p7zip > /dev/null
install:
- brew cask install r
- Rscript tools/config.R
- Rscript -e "install.packages('tinytex', dependencies = TRUE)"
- R CMD INSTALL .
build_script:
- ./tools/install-unx.sh
test_script:
- Rscript "tools/test-basic.R"
- tar zcf TinyTeX.tgz -C ~/Library TinyTeX
artifacts:
- path: TinyTeX.tgz
name: TinyTeX
-
matrix:
only:
- image: Ubuntu
cache:
- $HOME/R
install:
- sudo apt -qq update > /dev/null
- sudo apt -qq -y install r-base-dev pandoc pandoc-citeproc > /dev/null
- Rscript tools/config.R
- Rscript -e "install.packages('tinytex', dependencies = TRUE)"
- R CMD INSTALL .
build_script:
- ./tools/install-unx.sh
test_script:
- export PATH="$HOME/bin:$PATH"
- Rscript "tools/test-basic.R"
- tar zcf TinyTeX.tar.gz -C ~ .TinyTeX
artifacts:
- path: TinyTeX.tar.gz
name: TinyTeX