mirror of
https://github.com/Ellpeck/DynamicEnums.git
synced 2024-11-27 18:58:33 +01:00
Compare commits
No commits in common. "88c75a2464330d08d977289d862e1e5385426e6a" and "94b6304d52daeba0abe1daba5a395d5cb569bd32" have entirely different histories.
88c75a2464
...
94b6304d52
6 changed files with 77 additions and 62 deletions
|
@ -1,20 +0,0 @@
|
|||
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
|
|
@ -1,8 +1,8 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net452;netstandard2.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net452;netstandard2.0;net6.0</TargetFrameworks>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<IsAotCompatible Condition="'$(TargetFramework)'=='net8.0'">true</IsAotCompatible>
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
@ -13,7 +13,7 @@
|
|||
<RepositoryUrl>https://github.com/Ellpeck/DynamicEnums</RepositoryUrl>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<VersionPrefix>1.1.0</VersionPrefix>
|
||||
<VersionPrefix>1.0.1</VersionPrefix>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
35
Jenkinsfile
vendored
Normal file
35
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
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')
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<VSTestLogger>nunit</VSTestLogger>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
|
Loading…
Reference in a new issue