Updating Jenkinsfile to work on common runner.
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
Began moving poject to a devcontainer. Added webpack cache clearing script. Updated to .NET 8.0. testing Woodpecker CI. Selecting conda container for all build steps. Made conda installation quiet. Updated NodeJS version.
This commit is contained in:
3
scripts/clear_webpack_cache.sh
Normal file
3
scripts/clear_webpack_cache.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf ./Props/node_modules/.cache/webpack
|
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
|
Reference in New Issue
Block a user