Skip to content

Commit

Permalink
Added Build and Test Tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
odytrice committed Nov 15, 2016
1 parent 68c74ec commit c9ec64f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ build_script:
# Run build
- ps: $env:VersionSuffix = "011" + $env:APPVEYOR_BUILD_NUMBER.PadLeft(3, "0")
# -VersionSuffix %VersionSuffix%
- cmd: dotnet build
- ps: .\build.ps1 build
- ps: .\build.ps1 test
18 changes: 18 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
param (
[string]$task = "build"
)

if($task -eq "build"){

Push-Location src/Operation
dotnet restore
dotnet build
Pop-Location
}

if($task -eq "test"){
Push-Location test/Tests
dotnet restore
dotnet test
Pop-Location
}

0 comments on commit c9ec64f

Please sign in to comment.