Skip to content

Commit

Permalink
Added code coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
hack2root committed Mar 3, 2019
1 parent 0c550d1 commit f2cac9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion appveyor.yml
Expand Up @@ -22,4 +22,5 @@ cache:
- packages -> **\packages.config

build_script:
- ps: ./docker-init
- ps: ./docker-init
- ps: ./coverage
3 changes: 3 additions & 0 deletions coverage.ps1
@@ -1,3 +1,6 @@
& cd .nuget
& ./NuGet-dotnet-install
& cd ..
if(![System.IO.File]::Exists("packages/tools/dotnet-sonarscanner.exe")) {
# file with path $path doesn't exist
dotnet tool install --tool-path packages/tools dotnet-sonarscanner
Expand Down
6 changes: 1 addition & 5 deletions docker-init.ps1
Expand Up @@ -4,8 +4,4 @@ $image = "dot-net-sdk-3.0.100-preview2:latest"
& dotnet --list-sdks
& docker --version
& docker build -f .appveyour/Dockerfile -t $image .
& docker run --rm -it --name $container $image
& cd .nuget
& ./NuGet-dotnet-install
& cd ..
& ./coverage
& docker run --rm -it --name $container $image

0 comments on commit f2cac9a

Please sign in to comment.