Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create nuget packages #300

Merged
merged 8 commits into from Feb 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions JustSaying.AwsTools.IntegrationTests/project.json
Expand Up @@ -34,11 +34,11 @@
},
"dependencies": {
"JustBehave": "1.0.0.12",
"JustSaying": "5.0.0",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.TestingFramework": "5.0.0",
"JustSaying": {"target": "project"},
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"JustSaying.TestingFramework": {"target": "project"},
"Newtonsoft.Json": "9.0.1",
"NSubstitute": "1.10.0",
"NUnit": "3.6.0",
Expand Down
8 changes: 4 additions & 4 deletions JustSaying.AwsTools.UnitTests/project.json
Expand Up @@ -34,10 +34,10 @@
},
"dependencies": {
"JustBehave": "1.0.0.12",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.TestingFramework": "5.0.0",
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"JustSaying.TestingFramework": {"target": "project"},
"Newtonsoft.Json": "9.0.1",
"NSubstitute": "1.10.0",
"NUnit": "3.6.0",
Expand Down
2 changes: 1 addition & 1 deletion JustSaying.AwsTools/project.json
Expand Up @@ -36,7 +36,7 @@
"AWSSDK.Core": "3.3.8",
"AWSSDK.SimpleNotificationService": "3.3.0.7",
"AWSSDK.SQS": "3.3.1.7",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Messaging": {"target": "project"},
"Microsoft.Extensions.Logging.Abstractions": "1.1.0",
"Newtonsoft.Json": "9.0.1"
},
Expand Down
10 changes: 5 additions & 5 deletions JustSaying.IntegrationTests/project.json
Expand Up @@ -34,11 +34,11 @@
},
"dependencies": {
"JustBehave": "1.0.0.12",
"JustSaying": "5.0.0",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.TestingFramework": "5.0.0",
"JustSaying": {"target": "project"},
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"JustSaying.TestingFramework": {"target": "project"},
"Newtonsoft.Json": "9.0.1",
"NSubstitute": "1.10.0",
"NUnit": "3.6.0",
Expand Down
8 changes: 4 additions & 4 deletions JustSaying.Messaging.UnitTests/project.json
Expand Up @@ -34,10 +34,10 @@
},
"dependencies": {
"JustBehave": "1.0.0.12",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.TestingFramework": "5.0.0",
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"JustSaying.TestingFramework": {"target": "project"},
"Newtonsoft.Json": "9.0.1",
"NSubstitute": "1.10.0",
"NUnit": "3.6.0",
Expand Down
2 changes: 1 addition & 1 deletion JustSaying.Messaging/project.json
Expand Up @@ -33,7 +33,7 @@
}
},
"dependencies": {
"JustSaying.Models": "5.0.0",
"JustSaying.Models": {"target": "project"},
"Newtonsoft.Json": "9.0.1"
},
"frameworks": {
Expand Down
10 changes: 5 additions & 5 deletions JustSaying.TestingFramework/project.json
Expand Up @@ -24,7 +24,7 @@
},
"configurations": {
"Debug": {

},
"Release": {
"buildOptions": {
Expand All @@ -37,9 +37,9 @@
"AWSSDK.SimpleNotificationService": "3.3.0.7",
"AWSSDK.SQS": "3.3.1.7",
"JustBehave": "1.0.0.12",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"Newtonsoft.Json": "9.0.1",
"NSubstitute": "1.10.0",
"NUnit": "3.6.0"
Expand All @@ -49,4 +49,4 @@
"dependencies": { }
}
}
}
}
10 changes: 5 additions & 5 deletions JustSaying.Tools/project.json
Expand Up @@ -24,7 +24,7 @@
},
"configurations": {
"Debug": {

},
"Release": {
"buildOptions": {
Expand All @@ -35,9 +35,9 @@
"dependencies": {
"AWSSDK.Core": "3.3.8",
"AWSSDK.SQS": "3.3.1.7",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"Magnum": "2.1.3",
"Microsoft.Extensions.Logging": "1.1.0",
"Newtonsoft.Json": "9.0.1"
Expand All @@ -48,4 +48,4 @@
}
}
}
}
}
10 changes: 5 additions & 5 deletions JustSaying.UnitTests/project.json
Expand Up @@ -34,11 +34,11 @@
},
"dependencies": {
"JustBehave": "1.0.0.12",
"JustSaying": "5.0.0",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.TestingFramework": "5.0.0",
"JustSaying": {"target": "project"},
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"JustSaying.TestingFramework": {"target": "project"},
"Newtonsoft.Json": "9.0.1",
"NSubstitute": "1.10.0",
"NUnit": "3.6.0",
Expand Down
6 changes: 3 additions & 3 deletions JustSaying/project.json
Expand Up @@ -36,9 +36,9 @@
"AWSSDK.Core": "3.3.8",
"AWSSDK.SimpleNotificationService": "3.3.0.7",
"AWSSDK.SQS": "3.3.1.7",
"JustSaying.AwsTools": "5.0.0",
"JustSaying.Messaging": "5.0.0",
"JustSaying.Models": "5.0.0",
"JustSaying.AwsTools": {"target": "project"},
"JustSaying.Messaging": {"target": "project"},
"JustSaying.Models": {"target": "project"},
"Newtonsoft.Json": "9.0.1"
},
"frameworks": {
Expand Down
40 changes: 29 additions & 11 deletions appveyor.yml
@@ -1,26 +1,44 @@
version: 4.0.{build}
version: 5.0.{build}-beta01
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- nuget restore
build:
project: JustSaying.sln
parallel: true
publish_nuget: true
publish_nuget_symbols: true
include_nuget_references: true
verbosity: normal
build_script:
- ps: |
$projectFiles = @(
"JustSaying\project.json",
"JustSaying.AwsTools\project.json",
"JustSaying.AwsTools.IntegrationTests\project.json",
"JustSaying.AwsTools.UnitTests\project.json",
"JustSaying.IntegrationTests\project.json",
"JustSaying.Messaging\project.json",
"JustSaying.Messaging.UnitTests\project.json",
"JustSaying.Models\project.json",
"JustSaying.TestingFramework\project.json",
"JustSaying.Tools\project.json",
"JustSaying.UnitTests\project.json"
)
foreach ($projectFile in $projectFiles) {
$project = Get-Content $projectFile -Raw | ConvertFrom-Json
$project.version = $env:APPVEYOR_BUILD_VERSION
ConvertTo-Json $project -Depth 100 | Out-File -Encoding UTF8 $projectFile
}
- ps: dotnet restore
- ps: dotnet build JustSaying/project.json
test_script:
- dotnet test .\JustSaying.AwsTools.UnitTests\project.json
- dotnet test .\JustSaying.Messaging.UnitTests\project.json
- dotnet test .\JustSaying.UnitTests\project.json
after_build:
- dotnet pack "JustSaying" -o artifacts --no-build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we use --include-symbols to make a symbols package with the PDBs in as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, it's doing it anyway.

- dotnet pack "JustSaying.AwsTools" -o artifacts --no-build
- dotnet pack "JustSaying.Messaging" -o artifacts --no-build
- dotnet pack "JustSaying.Models" -o artifacts --no-build
artifacts:
- path: 'JustSaying.{version}*.nupkg'
- path: artifacts\**\*.*
notifications:
- provider: HipChat
room: 'Eng :: Open Source'
Expand Down