21 lines
862 B
Bash
21 lines
862 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Installing .NET environment
|
||
|
# According to https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#examples
|
||
|
# and https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
|
||
|
curl -L -o- https://dot.net/v1/dotnet-install.sh | bash -s -- --channel 8.0
|
||
|
echo export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 >> ~/.bashrc
|
||
|
echo 'export DOTNET_ROOT=$HOME/.dotnet' >> ~/.bashrc
|
||
|
echo 'export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools' >> ~/.bashrc
|
||
|
# Installing Node Version Manager
|
||
|
# According to https://github.com/Schniz/fnm
|
||
|
curl -fsSL https://fnm.vercel.app/install | bash
|
||
|
'''
|
||
|
sh '''#!/bin/bash
|
||
|
fnm install 20.15.1
|
||
|
fnm use default
|
||
|
# Restore all projects
|
||
|
dotnet restore Props/Props.csproj
|
||
|
dotnet restore Props.Tests/Props.Tests.csproj
|
||
|
dotnet restore Props.Shop/Props.Shop.sln
|
||
|
npm install --prefix ./Props
|