Skip to content

Commit 5f59cb9

Browse files
Azure pipelines: Fix issue w/ admin permissions.
1 parent 6a287f6 commit 5f59cb9

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
vmImage: $(imageName)
1919
steps:
2020
- powershell: |
21-
iwr -useb get.scoop.sh | iex
21+
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
2222
scoop install roswell
2323
ros install %LISP%
2424
ros config

config-examples/.azure-pipelines.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ jobs:
4747
curl -L https://raw.githubusercontent.com/roswell/roswell/release/scripts/install-for-ci.sh | sh
4848
displayName: Install Roswell for *nix
4949
condition: ne( variables['Agent.OS'], 'Windows_NT' )
50-
- pwsh: |
51-
$env:Path += ";$(Agent.TempDirectory)\roswell;$env:USERPROFILE\.roswell\bin"
52-
Write-Host "##vso[task.setvariable variable=PATH]$env:PATH" #Store the configured PATH for later steps. It is important to do that here, because of complications in managing the type of slash in bash vs pwsh
53-
Invoke-WebRequest -Uri "$(ROSWELL_ZIP)" -OutFile Roswell.zip
54-
7z x -o"$(Agent.TempDirectory)" Roswell.zip
55-
ros install $LISP
56-
ros config
50+
- powershell: |
51+
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
52+
scoop install roswell
53+
ros install %LISP%
54+
ros config
55+
mkdir "$Env:LOCALAPPDATA\config\common-lisp\source-registry.conf.d\"
56+
# $Env:dir = "%AGENT_BUILDDIRECTORY:\=/%"
57+
Set-Content -Path "$Env:LOCALAPPDATA\config\common-lisp\source-registry.conf.d\ci.conf" -Value "(:tree ""$Env:AGENT_BUILDDIRECTORY"")"
5758
displayName: Install Roswell for Windows
5859
condition: eq( variables['Agent.OS'], 'Windows_NT' )
5960

0 commit comments

Comments
 (0)