Skip to content

Commit a72bde1

Browse files
add windows tests
1 parent 1c88c22 commit a72bde1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
Write-Host "##vso[task.prependpath]C:\Strawberry\perl\site\bin"
2727
Write-Host "##vso[task.prependpath]C:\Strawberry\c\bin"
2828
displayName: Add strawberry perl to PATH
29+
- task: PowerShell@2
30+
inputs:
31+
filePath: "testing/get-renv.ps1"
32+
displayName: install R (for language renv)
2933
- template: job--python-tox.yml@asottile
3034
parameters:
3135
toxenvs: [py37]

testing/get-renv.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
$dir = "C:\R\R-win.exe"
1+
$dir = $Env:Temp
22
$urlR = "https://cran.r-project.org/bin/windows/base/R-4.0.3-win.exe"
33
$outputR = "$dir\R-win.exe"
44
$wcR = New-Object System.Net.WebClient
55
$wcR.DownloadFile($urlR, $outputR)
6-
$dirR = $dir + "R-win.exe"
7-
Start-Process -FilePath $dirR -ArgumentList "/S /v/qn"
6+
Start-Process -FilePath $outputR -ArgumentList "/S /v/qn"

0 commit comments

Comments
 (0)