The v3.0 release of vscode-torizon-templates uses xonsh instead of powershell.
Since I use the template of tcb (torizoncore-builder) inside an Azure Pipeline (CI) I wonder if xonsh is already available in ubuntu (it hosts the pipeline) or should I install it in some way.
I start my pipeline with
source ./.conf/tcb-env-setup.sh
Greetings @vix,
So just to understand you want to add Xonsh to your Ubuntu based pipeline, correct?
If so, then there are various methods to run/install Xonsh as documented on the official website: https://xon.sh/
Not sure which method would be most convenient for your particular pipeline environment.
Best Regards,
Jeremias
Not exactly.
I want to run tcb tasks in my CI.
I suppose I need xonsh because now these tasks are xonsh tasks and no more powershell tasks.
Am I wrong?
Your understanding here is correct. If you are reusing the tasks from the IDE extension in your pipeline then you need xonsh, if you want to execute the tasks as they are currently written.
Best Regards,
Jeremias
Hi @jeremias.tx
if I’m right, I think I can execute the same steps that I see in the github actions here
and using setup-xonsh.sh
.
But I think that this shell script should be copied inside .conf
folder like tcb-env-setup.sh
(that it’s there).
Am I right?
Yes, that would work as well if you prefer in your CI/CD pipeline as long as Xonsh is installed and setup correctly.
Best Regards,
Jeremias
It’s setup-xonsh.sh
that installs xonsh