-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
84 lines (67 loc) · 3.39 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
environment:
NOT_CRAN: "true"
matrix:
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
R_URL: "https://cran.rstudio.com/bin/windows/base/R-3.5.1-win.exe"
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
R_URL: "https://cran.rstudio.com/bin/windows/base/R-devel-win.exe"
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
install:
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
# Download most recent Julia Windows binary
- ps: (new-object net.webclient).DownloadFile(
$env:JULIA_URL,
"C:\projects\julia-binary.exe")
# Run installer silently, output to C:\projects\julia
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
- set PATH=C:\projects\julia\bin;%PATH%
# Download and install R binary
# - ps: |
# (new-object net.webclient).DownloadString("http://cran.rstudio.com/bin/windows/base/") -match 'href="(R-[0-9.]*[a-zA-Z]*-win.exe)"';
# (new-object net.webclient).DownloadFile($("http://cran.rstudio.com/bin/windows/base/"+$matches[1]),"C:\projects\R-binary.exe")
- ps: (new-object net.webclient).DownloadFile(
$env:R_URL,
"C:\projects\R-binary.exe")
- C:\projects\R-binary.exe /VERYSILENT /DIR=C:\projects\R
# Download miktex portable
- ps: (new-object net.webclient).DownloadFile(
"http://mirrors.ctan.org/systems/win32/miktex/setup/windows-x86/miktex-portable-2.9.6753.exe",
"C:\projects\miktex-portable.exe")
- 7z x C:\projects\miktex-portable.exe -oC:\miktex >NUL
- set "PATH=%PATH%;c:\miktex\texmfs\install\miktex\bin"
# autoinstall latex packages (0=no, 1=autoinstall, 2=ask)
# this adds this to the registry!
- initexmf --set-config-value "[MPM]AutoInstall=1"
- set PATH=C:\projects\R\bin\x64;%PATH%
# Download and install Rtools
- ps: (new-object net.webclient).DownloadFile(
"https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe",
"C:\projects\rtools.exe")
# - C:\projects\rtools.exe /S /D=C:\Rtools
- C:\projects\rtools.exe /VERYSILENT /DIR=C:\Rtools
- set PATH=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;%PATH%
build_script:
# Need to convert from shallow to complete for Pkg.clone to work
# - IF EXIST .git\shallow (git fetch --unshallow)
# - C:\projects\julia\bin\julia -e "versioninfo();
# Pkg.clone(pwd(), \"RCall\"); Pkg.build(\"RCall\")"
# Not build vignettes
- rm -rf vignettes
- Rscript -e "d <- read.dcf('DESCRIPTION'); d[, colnames(d) == 'VignetteBuilder'] <- NA; write.dcf(d, 'DESCRIPTION')"
- Rscript -e "sessionInfo()"
- Rscript -e "install.packages(\"testthat\", repos=\"http://cran.rstudio.com/\")"
- Rscript -e "install.packages(\"knitr\", repos=\"http://cran.rstudio.com/\")"
- Rscript -e "install.packages(\"rmarkdown\", repos=\"http://cran.rstudio.com/\")"
- Rscript -e "install.packages(\"JuliaCall\", repos=\"http://cran.rstudio.com/\")"
# - Rscript -e "install.packages(\"remotes\", repos=\"http://cran.rstudio.com/\")"
# - Rscript -e "remotes::install_github(\"Non-Contradiction/JuliaCall\")"
test_script:
- R CMD build .
- R CMD check *tar.gz --no-multiarch
on_finish:
# uncomment to enable RDP to Appveyor
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))