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
2b488fa7
Commit
2b488fa7
authored
Apr 16, 2016
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PowerShell build script love
parent
151f05cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
build.ps1
build.ps1
+10
-6
No files found.
build.ps1
View file @
2b488fa7
...
@@ -30,8 +30,7 @@ foreach {
...
@@ -30,8 +30,7 @@ foreach {
}
}
# Restore packages and build product
# Restore packages and build product
& dotnet restore
"Dapper"
& dotnet restore -v Minimal
# Restore all packages
& dotnet restore
"Dapper.Contrib"
if
(
$LASTEXITCODE
-ne 0
)
if
(
$LASTEXITCODE
-ne 0
)
{
{
throw
"dotnet restore failed with exit code
$LASTEXITCODE
"
throw
"dotnet restore failed with exit code
$LASTEXITCODE
"
...
@@ -40,13 +39,18 @@ if ($LASTEXITCODE -ne 0)
...
@@ -40,13 +39,18 @@ if ($LASTEXITCODE -ne 0)
& dotnet pack
"Dapper"
--configuration Release --output
"artifacts\packages"
& dotnet pack
"Dapper"
--configuration Release --output
"artifacts\packages"
& dotnet pack
"Dapper.Contrib"
--configuration Release --output
"artifacts\packages"
& dotnet pack
"Dapper.Contrib"
--configuration Release --output
"artifacts\packages"
#restore, compile, and run tests
# Build all
& dotnet restore
"Dapper.Tests"
-f
"artifacts\packages"
# Note the exclude: https://github.com/dotnet/cli/issues/1342
& dotnet restore
"Dapper.Tests.Contrib"
-f
"artifacts\packages"
dir
"Dapper*"
|
where
{
$_
.PsIsContainer -and
$_
-NotLike
"*.EntityFramework.StrongName"
}
|
dir
"*.Tests*"
|
where
{
$_
.PsIsContainer
}
|
foreach
{
foreach
{
pushd
"
$_
"
pushd
"
$_
"
& dotnet build
& dotnet build
popd
}
# Run tests
dir
"*.Tests*"
|
where
{
$_
.PsIsContainer
}
|
foreach
{
pushd
"
$_
"
& dotnet
test
& dotnet
test
popd
popd
}
}
...
...
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