Skip to content

Commit 9668450

Browse files
committed
2 parents ef6dc65 + 1020b32 commit 9668450

File tree

8 files changed

+238
-244
lines changed

8 files changed

+238
-244
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
If you want to make If it's a small change, go ahead and raise a PR, otherwise follow these steps:
66

7-
1. View the [Projects](https://github.com/RehanSaeed/Schema.NET/projects) page to see a To-Do list of things to be implemented.
8-
2. Raise an issue or comment on an existing issue with what you want to contribute.
7+
1. View the [Projects](https://github.com/RehanSaeed/Schema.NET/issues) page to see a To-Do list of things to be implemented.
8+
2. Raise an issue or comment on an existing issue with what you want to contribute if one does not already exist.
99
3. When you get the go ahead, follow the coding guidelines and raise a PR.
1010

1111
# Coding Guidelines
1212

13-
- Projects use StyleCop to produce style warnings. Please fix all warnings in any code you submit.
13+
- Projects use StyleCop and .editroconfig to produce style warnings. Please fix all warnings in any code you submit.
1414
- Write unit tests for any code written.
1515

1616
# Special Thanks

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,16 @@ For more examples and actual running code samples, take a look at the unit tests
151151

152152
| Name | Operating System | Status |
153153
| :--- | :--- | :--- |
154-
| Azure Pipelines | Windows | [![Azure Pipelines Windows Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=master&jobName=Windows)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=master) |
155-
| Azure Pipelines | Ubuntu | [![Azure Pipelines Ubuntu Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=master&jobName=Ubuntu)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=master) |
154+
| Azure Pipelines | Ubuntu | [![Azure Pipelines Ubuntu Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=master&stageName=Build&jobName=Build&configuration=Build%20Linux)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=master) |
155+
| Azure Pipelines | Mac | [![Azure Pipelines Mac Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=master&stageName=Build&jobName=Build&configuration=Build%20Mac)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=master) |
156+
| Azure Pipelines | Windows | [![Azure Pipelines Windows Build Status](https://dev.azure.com/schema-net/Schema.NET/_apis/build/status/Schema.NET?branchName=master&stageName=Build&jobName=Build&configuration=Build%20Windows)](https://dev.azure.com/schema-net/Schema.NET/_build/latest?definitionId=1&branchName=master) |
156157
| AppVeyor | Ubuntu & Windows | [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/djxrpkw8ckyf24c1?svg=true)](https://ci.appveyor.com/project/RehanSaeed/schema-net) |
157158

158159
## NuGet Packages
159160

160-
| Name | NuGet | MyGet |
161-
| :--- | :--- | :--- |
162-
| Schema.NET | [![Schema.NET NuGet Package](https://img.shields.io/nuget/v/Schema.NET.svg)](https://www.nuget.org/packages/Schema.NET) | [![Schema.NET MyGet Package](https://img.shields.io/myget/schema-net/v/Schema.Net.svg)](http://myget.org/gallery/schema-net) |
161+
| Name | NuGet | Azure Artifacts |
162+
| :--- | :--- | :--- |
163+
| Schema.NET | [![Schema.NET NuGet Package](https://img.shields.io/nuget/v/Schema.NET.svg)](https://www.nuget.org/packages/Schema.NET) | [![Schema.NET Azure Artifacts Package](https://feeds.dev.azure.com/schema-net/_apis/public/Packaging/Feeds/64e69c35-cb00-46e4-9cba-6d8faf1f41d6/Packages/fa72270b-6c54-4403-9307-aa826e43530e/Badge)](https://dev.azure.com/schema-net/Schema.NET/_packaging?_a=package&feed=64e69c35-cb00-46e4-9cba-6d8faf1f41d6&package=fa72270b-6c54-4403-9307-aa826e43530e&preferRelease=true) |
163164

164165
## Contributions and Thanks
165166

Schema.NET.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F20E2797-D1E3-4321-91BB-FAE54954D2A0}"
99
ProjectSection(SolutionItems) = preProject
1010
.editorconfig = .editorconfig
11+
.gitattributes = .gitattributes
1112
.gitignore = .gitignore
1213
appveyor.yml = appveyor.yml
1314
azure-pipelines.yml = azure-pipelines.yml
@@ -23,6 +24,7 @@ EndProject
2324
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{7EDFA103-DB69-4C88-9DE4-97ADBF8253A1}"
2425
ProjectSection(SolutionItems) = preProject
2526
CONTRIBUTING.md = CONTRIBUTING.md
27+
ISSUE_TEMPLATE.md = ISSUE_TEMPLATE.md
2628
LICENSE = LICENSE
2729
README.md = README.md
2830
EndProjectSection

Source/Schema.NET/Schema.NET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<PropertyGroup Label="Package">
13-
<VersionPrefix>4.0.0</VersionPrefix>
13+
<VersionPrefix>4.1.0</VersionPrefix>
1414
<Authors>Muhammad Rehan Saeed (RehanSaeed.com)</Authors>
1515
<Product>Schema.NET</Product>
1616
<Description>Schema.org objects turned into strongly typed C# POCO classes for use in .NET. All classes can be serialized into JSON/JSON-LD and XML, typically used to represent structured data in the head section of html page.</Description>

Tests/Schema.NET.Test/Schema.NET.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
</ItemGroup>
1313

1414
<ItemGroup Label="Package References">
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.0" />
16-
<PackageReference Include="Moq" Version="4.10.1" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.1" />
16+
<PackageReference Include="Moq" Version="4.11.0" />
1717
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="all" Version="1.1.118" />
1818
<PackageReference Include="xunit" Version="2.4.1" />
1919
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />

appveyor.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ build_script:
2525
- sh: sudo apt-get install -y dotnet-sdk-2.2
2626
- cmd: choco install dotnetcore-sdk --no-progress --confirm --version 2.2.300
2727
- pwsh: dotnet tool install --global Cake.Tool
28-
- pwsh: dotnet cake
28+
- pwsh: dotnet cake --target=Build
29+
- pwsh: dotnet cake --target=Test
30+
- pwsh: dotnet cake --target=Pack
2931

3032
test: off
3133

@@ -35,30 +37,4 @@ artifacts:
3537
- name: NuGet Symbol Packages
3638
path: ./Artifacts/**/*.snupkg
3739
- name: xUnit Test Results
38-
path: ./Artifacts/**/*.xml
39-
40-
deploy:
41-
# Publish MyGet packages
42-
- provider: NuGet
43-
server: https://www.myget.org/F/schema-net/api/v2/package
44-
api_key:
45-
secure: aunGGWt32irQiOTX2wIO6e2Y5Ga0girA3xSUsmQv6E9d6ohHdbK5HJpXpmxW9QM3
46-
on:
47-
# Only publish on Windows
48-
CI_WINDOWS: true
49-
# Only publish from the master branch
50-
branch: master
51-
# Publish NuGet packages
52-
- provider: NuGet
53-
name: production
54-
api_key:
55-
secure: 73eFUWSfho6pxCy1VRP1H0AYh/SFiyEREV+/ATcoj0I+sSH9dec/WXs6H2Jy5vlS
56-
on:
57-
# Only publish on Windows
58-
CI_WINDOWS: true
59-
# Only publish from the master branch
60-
branch: master
61-
# Only publish if the trigger was a Git tag
62-
# git tag v0.1.0-beta
63-
# git push origin --tags
64-
appveyor_repo_tag: true
40+
path: ./Artifacts/**/*.xml

azure-pipelines.yml

Lines changed: 97 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,97 @@
1-
# Azure Pipelines documentation https://aka.ms/yaml
2-
3-
trigger:
4-
branches:
5-
include:
6-
- '*'
7-
tags:
8-
include:
9-
- '*'
10-
11-
variables:
12-
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
13-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
14-
# Disable sending usage data to Microsoft
15-
DOTNET_CLI_TELEMETRY_OPTOUT: true
16-
17-
jobs:
18-
- job: Ubuntu
19-
pool:
20-
vmImage: 'ubuntu-latest'
21-
steps:
22-
- task: Bash@3
23-
displayName: 'Install .NET Core SDK'
24-
inputs:
25-
targetType: 'inline'
26-
script: 'sudo apt-get update && sudo apt-get install -y dotnet-sdk-2.2'
27-
- task: Bash@3
28-
displayName: 'Install Cake Tool'
29-
inputs:
30-
targetType: 'inline'
31-
script: 'dotnet tool install --global Cake.Tool'
32-
failOnStderr: true
33-
- task: Bash@3
34-
displayName: 'Dotnet Cake'
35-
inputs:
36-
targetType: 'inline'
37-
script: 'dotnet cake'
38-
failOnStderr: true
39-
- task: PublishTestResults@2
40-
displayName: 'Publish Test Results'
41-
inputs:
42-
testResultsFormat: 'VSTest'
43-
testResultsFiles: '**/*.trx'
44-
- task: PublishPipelineArtifact@0
45-
displayName: 'Publish Artifacts'
46-
inputs:
47-
artifactName: 'Ubuntu Artifacts'
48-
targetPath: './Artifacts'
49-
50-
- job: Windows
51-
pool:
52-
vmImage: 'windows-latest'
53-
steps:
54-
- task: PowerShell@2
55-
displayName: 'Install .NET Core SDK'
56-
inputs:
57-
targetType: 'inline'
58-
script: 'choco install dotnetcore-sdk --no-progress --confirm --version 2.2.300'
59-
failOnStderr: true
60-
pwsh: true
61-
- task: PowerShell@2
62-
displayName: 'Install Cake Tool'
63-
inputs:
64-
targetType: 'inline'
65-
script: 'dotnet tool install --global Cake.Tool'
66-
failOnStderr: true
67-
pwsh: true
68-
- task: PowerShell@2
69-
displayName: 'Dotnet Cake'
70-
inputs:
71-
targetType: 'inline'
72-
script: 'dotnet cake'
73-
failOnStderr: true
74-
pwsh: true
75-
- task: PublishTestResults@2
76-
displayName: 'Publish Test Results'
77-
inputs:
78-
testResultsFormat: 'VSTest'
79-
testResultsFiles: '**/*.trx'
80-
- task: PublishPipelineArtifact@0
81-
displayName: 'Publish Artifacts'
82-
inputs:
83-
artifactName: 'Windows Artifacts'
84-
targetPath: './Artifacts'
1+
# Azure Pipelines documentation https://aka.ms/yaml
2+
3+
trigger:
4+
branches:
5+
include:
6+
- '*'
7+
tags:
8+
include:
9+
- '*'
10+
11+
variables:
12+
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
13+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
14+
# Disable sending usage data to Microsoft
15+
DOTNET_CLI_TELEMETRY_OPTOUT: true
16+
17+
stages:
18+
- stage: Build
19+
jobs:
20+
- job: Build
21+
strategy:
22+
matrix:
23+
Linux:
24+
matrixName: Ubuntu
25+
vmImageName: ubuntu-latest
26+
Mac:
27+
matrixName: Mac
28+
vmImageName: macos-latest
29+
Windows:
30+
matrixName: Windows
31+
vmImageName: windows-latest
32+
pool:
33+
vmImage: $(vmImageName)
34+
timeoutInMinutes: 10
35+
steps:
36+
- task: UseDotNet@2
37+
displayName: 'Install .NET Core SDK'
38+
inputs:
39+
packageType: 'sdk'
40+
version: '2.2.300'
41+
- script: 'dotnet tool install --global Cake.Tool'
42+
displayName: 'Install Cake Tool'
43+
failOnStderr: true
44+
- script: 'dotnet cake --target=Build'
45+
displayName: 'Dotnet Cake Build'
46+
failOnStderr: true
47+
- script: 'dotnet cake --target=Test'
48+
displayName: 'Dotnet Cake Test'
49+
failOnStderr: true
50+
- script: 'dotnet cake --target=Pack'
51+
displayName: 'Dotnet Cake Pack'
52+
failOnStderr: true
53+
- task: PublishTestResults@2
54+
displayName: 'Publish Test Results'
55+
inputs:
56+
testResultsFormat: 'VSTest'
57+
testResultsFiles: '**/*.trx'
58+
- task: PublishPipelineArtifact@0
59+
displayName: 'Publish Artifacts'
60+
inputs:
61+
artifactName: $(matrixName)
62+
targetPath: './Artifacts'
63+
- stage: Deploy
64+
jobs:
65+
- deployment: AzureArtifacts
66+
displayName: 'Azure Artifacts'
67+
pool:
68+
vmImage: ubuntu-latest
69+
environment: 'Azure Artifacts'
70+
strategy:
71+
runOnce:
72+
deploy:
73+
steps:
74+
- task: DotNetCoreCLI@2
75+
displayName: 'Dotnet NuGet Push'
76+
inputs:
77+
command: push
78+
nuGetFeedType: internal
79+
packagesToPush: '/home/vsts/work/1/Windows/*.nupkg'
80+
publishVstsFeed: schema-net
81+
- deployment: NuGet
82+
pool:
83+
vmImage: ubuntu-latest
84+
environment: 'NuGet'
85+
condition: startsWith(variables['build.sourceBranch'], 'refs/tags/')
86+
strategy:
87+
runOnce:
88+
deploy:
89+
steps:
90+
# Dotnet NuGet does not work yet https://github.com/Microsoft/azure-pipelines-tasks/issues/7160
91+
- task: NuGetCommand@2
92+
displayName: 'Dotnet NuGet Push'
93+
inputs:
94+
command: push
95+
nuGetFeedType: external
96+
packagesToPush: '/home/vsts/work/1/Windows/*.nupkg'
97+
publishFeedCredentials: NuGet

0 commit comments

Comments
 (0)