From a72bde1b0a654ae9053e8784b8433f3601d6664f Mon Sep 17 00:00:00 2001 From: Lorenz Date: Tue, 16 Feb 2021 00:49:07 +0100 Subject: [PATCH] add windows tests --- azure-pipelines.yml | 4 ++++ testing/get-renv.ps1 | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ad5f74732..5f85f5be9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,6 +26,10 @@ jobs: Write-Host "##vso[task.prependpath]C:\Strawberry\perl\site\bin" Write-Host "##vso[task.prependpath]C:\Strawberry\c\bin" displayName: Add strawberry perl to PATH + - task: PowerShell@2 + inputs: + filePath: "testing/get-renv.ps1" + displayName: install R (for language renv) - template: job--python-tox.yml@asottile parameters: toxenvs: [py37] diff --git a/testing/get-renv.ps1 b/testing/get-renv.ps1 index ce76dc86b..7fcdcc1bc 100644 --- a/testing/get-renv.ps1 +++ b/testing/get-renv.ps1 @@ -1,7 +1,6 @@ -$dir = "C:\R\R-win.exe" +$dir = $Env:Temp $urlR = "https://cran.r-project.org/bin/windows/base/R-4.0.3-win.exe" $outputR = "$dir\R-win.exe" $wcR = New-Object System.Net.WebClient $wcR.DownloadFile($urlR, $outputR) -$dirR = $dir + "R-win.exe" -Start-Process -FilePath $dirR -ArgumentList "/S /v/qn" +Start-Process -FilePath $outputR -ArgumentList "/S /v/qn"