Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
ae431aaf
Commit
ae431aaf
authored
Apr 12, 2017
by
m0sa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore, build and test in release configuration, don't (re-)build on test and pack
parent
a4712007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
build.ps1
build.ps1
+7
-7
No files found.
build.ps1
View file @
ae431aaf
...
...
@@ -7,16 +7,16 @@ $packageOutputFolder = "$PSScriptRoot\.nupkgs"
# Restore packages and build product
Write-Host
"Restoring..."
-ForegroundColor
"Green"
& dotnet msbuild /t:Restore /nologo /m /v:m
"/p:PackageVersionSuffix=
$PreReleaseSuffix
"
# Restore all packages
& dotnet msbuild /t:Restore /nologo /m /v:m
"/p:
Configuration=Release"
"/p:
PackageVersionSuffix=
$PreReleaseSuffix
"
# Restore all packages
if
(
$LASTEXITCODE
-ne 0
)
{
throw
"
dotnet
restore failed with exit code
$LASTEXITCODE
"
throw
"restore failed with exit code
$LASTEXITCODE
"
}
if
(
$PreReleaseSuffix
)
{
& dotnet build --version-suffix
"
$PreReleaseSuffix
"
& dotnet build -
c Release -
-version-suffix
"
$PreReleaseSuffix
"
}
else
{
& dotnet build
& dotnet build
-c Release
}
# Run tests
...
...
@@ -29,13 +29,13 @@ else
Write-Host
"Running Tests..."
-ForegroundColor
"Green"
Get-ChildItem
"Dapper.Test*.csproj"
-Recurse |
ForEach
-Object
{
& dotnet
test
"
$_
"
& dotnet
test
"
$_
"
-c Release --no-build
}
}
# Package all
if
(
$PreReleaseSuffix
)
{
& dotnet pack -c Release -o
"
$packageOutputFolder
"
--
version-suffix
"
$PreReleaseSuffix
"
& dotnet pack -c Release -o
"
$packageOutputFolder
"
--
no-build --version-suffix
"
$PreReleaseSuffix
"
}
else
{
& dotnet pack -c Release -o
"
$packageOutputFolder
"
& dotnet pack -c Release -o
"
$packageOutputFolder
"
--no-build
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment