Changing back to Node Version Manager.
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit
This commit is contained in:
parent
ced027da17
commit
e6e31e0cfe
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -12,12 +12,12 @@ pipeline {
|
||||
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
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
|
||||
'''
|
||||
sh '''#!/bin/bash
|
||||
fnm install 20.15.1
|
||||
fnm use default
|
||||
nvm install 20.15.1
|
||||
nvm use default
|
||||
# Restore all projects
|
||||
dotnet restore Props/Props.csproj
|
||||
dotnet restore Props.Tests/Props.Tests.csproj
|
||||
|
21
scripts/install.sh
Normal file
21
scripts/install.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/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
|
3
scripts/publish_props.sh
Normal file
3
scripts/publish_props.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
dotnet publish --configuration Release --output output/props/props-linux-x64 --runtime linux-x64 --self-contained Props
|
||||
dotnet publish --configuration Release --output output/props/props-win-x64 --runtime win-x64 --self-contained Props
|
3
scripts/publish_props_shops.sh
Normal file
3
scripts/publish_props_shops.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
dotnet publish --configuration Release --output output/shop-modules Props.Shop/Props.Shop.sln
|
3
scripts/test_props.sh
Normal file
3
scripts/test_props.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
dotnet test --logger xunit --no-restore Props.Tests
|
3
scripts/test_props_shops.sh
Normal file
3
scripts/test_props_shops.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
dotnet test --logger xunit --no-restore Props.Shop/Props.Shop.sln
|
Loading…
Reference in New Issue
Block a user