Commit 3d4d251a authored by Nick Craver's avatar Nick Craver

Switch version suffix to be a build parameter

Note: build.sh needs love from OS X/*nix later to match
parent 41f1fe3e
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
"authors": [ "Sam Saffron", "Johan Danforth" ], "authors": [ "Sam Saffron", "Johan Danforth" ],
"description": "The official collection of get, insert, update and delete helpers for dapper.net. Also handles lists of entities and optional \"dirty\" tracking of interface-based entities.", "description": "The official collection of get, insert, update and delete helpers for dapper.net. Also handles lists of entities and optional \"dirty\" tracking of interface-based entities.",
"version": "1.50-rc2", "version": "1.50-*",
"title": "Dapper.Contrib", "title": "Dapper.Contrib",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
"authors": [ "Marc Gravell", "Nick Craver" ], "authors": [ "Marc Gravell", "Nick Craver" ],
"description": "Extension handlers for entity framework", "description": "Extension handlers for entity framework",
"version": "1.50-rc2", "version": "1.50-*",
"title": "Dapper entity framework type handlers (with a strong name)", "title": "Dapper entity framework type handlers (with a strong name)",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
"authors": [ "Marc Gravell", "Nick Craver" ], "authors": [ "Marc Gravell", "Nick Craver" ],
"description": "Extension handlers for entity framework", "description": "Extension handlers for entity framework",
"version": "1.50-rc2", "version": "1.50-*",
"title": "Dapper entity framework type handlers", "title": "Dapper entity framework type handlers",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
}, },
"authors": [ "Sam Saffron, Johan Danforth" ], "authors": [ "Sam Saffron, Johan Danforth" ],
"description": "The Dapper SqlBuilder component, for building SQL queries dynamically.", "description": "The Dapper SqlBuilder component, for building SQL queries dynamically.",
"version": "1.50-rc2", "version": "1.50-*",
"title": "Dapper SqlBuilder component", "title": "Dapper SqlBuilder component",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}, },
"authors": [ "Sam Saffron", "Marc Gravell", "Nick Craver" ], "authors": [ "Sam Saffron", "Marc Gravell", "Nick Craver" ],
"description": "A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc..", "description": "A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc..",
"version": "1.50-rc2", "version": "1.50-*",
"title": "Dapper dot net (strong named)", "title": "Dapper dot net (strong named)",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
......
...@@ -17,15 +17,12 @@ ...@@ -17,15 +17,12 @@
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
"Dapper": { "Dapper": {
"version": "1.50-*",
"target": "project" "target": "project"
}, },
"Dapper.Contrib": { "Dapper.Contrib": {
"version": "1.50-*",
"target": "project" "target": "project"
}, },
"Dapper.SqlBuilder": { "Dapper.SqlBuilder": {
"version": "1.50-*",
"target": "project" "target": "project"
} }
}, },
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
"Dapper": { "Dapper": {
"version": "1.50-*",
"target": "project" "target": "project"
}, },
"Dapper.Contrib": { "Dapper.Contrib": {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"url": "https://github.com/StackExchange/dapper-dot-net" "url": "https://github.com/StackExchange/dapper-dot-net"
} }
}, },
"version": "1.50-rc2", "version": "1.50-*",
"authors": [ "Sam Saffron", "Marc Gravell", "Nick Craver" ], "authors": [ "Sam Saffron", "Marc Gravell", "Nick Craver" ],
"description": "A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc..", "description": "A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc..",
"title": "Dapper dot net", "title": "Dapper dot net",
......
param(
[parameter(Position=0)][string] $PreReleaseSuffix = ''
)
$solutionPath = split-path $MyInvocation.MyCommand.Definition $solutionPath = split-path $MyInvocation.MyCommand.Definition
$getDotNet = join-path $solutionPath "tools\install.ps1" $getDotNet = join-path $solutionPath "tools\install.ps1"
...@@ -39,20 +42,26 @@ if ($LASTEXITCODE -ne 0) ...@@ -39,20 +42,26 @@ if ($LASTEXITCODE -ne 0)
# Build all # Build all
dir "Dapper*" | where {$_.PsIsContainer} | dir "Dapper*" | where {$_.PsIsContainer} |
foreach { foreach {
& $dotnet build "$_" if ($PreReleaseSuffix) {
& $dotnet build "$_" --version-suffix "$PreReleaseSuffix"
} else {
& $dotnet build "$_"
}
} }
# Run tests # Run tests
dir "*.Tests*" | where {$_.PsIsContainer} | dir "*.Tests*" | where {$_.PsIsContainer} |
foreach { foreach {
pushd "$_" & $dotnet test "$_"
& $dotnet test
popd
} }
# Package all # Package all
dir "Dapper*" | where {$_.PsIsContainer -and $_ -NotLike "*.Tests*" } | dir "Dapper*" | where {$_.PsIsContainer -and $_ -NotLike "*.Tests*" } |
foreach { foreach {
& $dotnet pack "$_" -c Release -o .\.nupkg\ if ($PreReleaseSuffix) {
& $dotnet pack "$_" -c Release -o .\.nupkg\ --version-suffix "$PreReleaseSuffix"
} else {
& $dotnet pack "$_" -c Release -o .\.nupkg\
}
} }
ls */*/project.json | foreach { echo $_.FullName} | ls */*/project.json | foreach { echo $_.FullName} |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment