How to use PowerShell preview on Ubuntu?
Hi
The Ubuntu image comes with PowerShell 6.2.1, I want to test on PowerShell 7.0.0-preview.1
It installs successfully and "pwsh-preview" command is added but the AppVeyor test still run on the old version.
I tried to add an alias "alias pwsh=pwsh-preview" but it did not help.
The yml setting:
init:
- sh: sudo apt-get install -y powershell-preview && alias pwsh=pwsh-preview && sudo sh -c 'echo "shopt -s expand_aliases\nalias pwsh=pwsh-preview" >> /etc/bash.bashrc' && sudo sh -c 'echo "shopt -s expand_aliases\nalias pwsh=pwsh-preview" >> ~/.bashrc'
The output https://ci.appveyor.com/project/ili101/test/builds/25847821
How can I make AppVeyor switch to the preview version?
Thank you
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 09 Jul, 2019 07:58 PM
I don't think
alias
would work there as AppVeyor build agent is looking explicitly inPATH
forpwsh
executable. You can replacepwsh
link though, I think, to point topwsh-preview
.Alternatively, you'd better use
pwsh-preview
directly in your tests rather than rely on build-int PowerShell runner.2 Posted by zoby101 on 10 Jul, 2019 12:58 PM
Got it to work with:
Support Staff 3 Posted by Feodor Fitsner on 10 Jul, 2019 02:03 PM
Thanks for the update!
Feodor Fitsner closed this discussion on 10 Jul, 2019 02:03 PM.