-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f1392e
commit f7eb2d6
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
queue: 'Hosted Linux Preview' | ||
variables: | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: 'restore' | ||
projects: '**/*.csproj' | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: 'build' | ||
projects: '**/*.csproj' | ||
arguments: '--configuration $(buildConfiguration)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: 'test' | ||
projects: '**/*[Tt]ests/*.csproj' | ||
arguments: '--configuration $(buildConfiguration)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: 'publish' | ||
arguments: '--configuration $(buildConfiguration) --output out' | ||
zipAfterPublish: false | ||
|
||
# Replace adventworks in the following with the name of your docker id. | ||
- script: docker build -f Dockerfile -t adventworks/dotnetcore-sample . |