Compare commits

...

4 commits

Author SHA1 Message Date
Ell
88c75a2464 1.1.0 2023-12-22 16:21:14 +01:00
Ell
f56424cbf9 prepend "ci" to build num 2023-12-22 16:19:13 +01:00
Ell
bfa5641849 added new ci script 2023-12-22 16:15:43 +01:00
Ell
443c03b024 .net 8 update 2023-12-22 16:05:27 +01:00
6 changed files with 62 additions and 77 deletions

20
.woodpecker/main.yml Normal file
View file

@ -0,0 +1,20 @@
variables:
- &image mcr.microsoft.com/dotnet/sdk:8.0-jammy
steps:
build:
image: *image
commands: dotnet build
test:
image: *image
commands: dotnet test --collect:"XPlat Code Coverage"
pack:
image: *image
commands: dotnet pack --version-suffix ci.$CI_PIPELINE_NUMBER
publish:
image: *image
when:
branch: main
event: push
commands: dotnet nuget push -s https://nuget.ellpeck.de/v3/index.json **/*.nupkg -k $BAGET_KEY -n
secrets:
- baget_key

View file

@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net452;netstandard2.0;net6.0</TargetFrameworks> <TargetFrameworks>net452;netstandard2.0;net8.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsTrimmable>true</IsTrimmable> <IsAotCompatible Condition="'$(TargetFramework)'=='net8.0'">true</IsAotCompatible>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
@ -13,7 +13,7 @@
<RepositoryUrl>https://github.com/Ellpeck/DynamicEnums</RepositoryUrl> <RepositoryUrl>https://github.com/Ellpeck/DynamicEnums</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile> <PackageReadmeFile>README.md</PackageReadmeFile>
<VersionPrefix>1.0.1</VersionPrefix> <VersionPrefix>1.1.0</VersionPrefix>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

35
Jenkinsfile vendored
View file

@ -1,35 +0,0 @@
pipeline {
agent any
stages {
stage('Test') {
steps {
sh 'dotnet test --collect:"XPlat Code Coverage"'
}
}
stage('Pack') {
steps {
sh 'find . -type f -name "*.nupkg" -delete'
sh 'dotnet pack --version-suffix ${BUILD_NUMBER}'
}
}
stage('Publish') {
when {
branch 'main'
}
steps {
sh 'dotnet nuget push -s https://nuget.ellpeck.de/v3/index.json **/*.nupkg -k $BAGET -n'
}
}
}
post {
always {
nunit testResultsPattern: '**/TestResults.xml'
cobertura coberturaReportFile: '**/coverage.cobertura.xml'
}
}
environment {
BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')
}
}

View file

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<VSTestLogger>nunit</VSTestLogger> <VSTestLogger>nunit</VSTestLogger>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
</PropertyGroup> </PropertyGroup>