version: '0.10.0+{build}'
image: Visual Studio 2017
skip_branch_with_pr: true
branches:
  only:
    - master
skip_commits:
  files:
  - '**/*.md'

build:
  verbosity: minimal
services:
  - mongodb
install:
  - choco install opencover codecov


build_script:
  - dotnet build -c Release
  - dotnet pack --no-build -c Release /p:PackageOutputPath=..\..\.nupkgs
test_script:
  - OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test tests/MongoFramework.Tests/MongoFramework.Tests.csproj /p:DebugType=Full" -filter:"+[MongoFramework]* -[MongoFramework.Tests]*" -output:".\coverage.xml" -oldstyle
  - codecov -f coverage.xml


artifacts:
  - path: '.nupkgs\*.nupkg'

  - path: coverage.xml
    name: Coverage Report
version: '0.10.0+{build}'
image: Visual Studio 2017
skip_branch_with_pr: true
branches:
  only:
    - master
skip_commits:
  files:
  - '**/*.md'

cache:
  - packages -> **\*.csproj

build:
  verbosity: minimal
services:
  - mongodb
install:
  - choco install opencover codecov


build_script:
  - dotnet build -c Release
  - dotnet pack --no-build -c Release /p:PackageOutputPath=..\..\.nupkgs
test_script:
  - OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test tests/MongoFramework.Tests/MongoFramework.Tests.csproj /p:DebugType=Full" -filter:"+[MongoFramework]* -[MongoFramework.Tests]*" -output:".\coverage.xml" -oldstyle
  - codecov -f coverage.xml


artifacts:
  - path: '.nupkgs\*.nupkg'

  - path: coverage.xml
    name: Coverage Report
Add packages caching for CI
Add packages caching for CI
