language: csharp
solution: Sailthru/Sailthru.sln

install:
  - nuget restore Sailthru/Sailthru.sln
  - msbuild /t:Restore Sailthru/Sailthru.sln
  - nuget install NUnit.Console -Version 3.12.0-beta1 -OutputDirectory testrunner

script:
  - msbuild /p:Configuration=Release Sailthru/Sailthru.sln
  - mono ./testrunner/NUnit.ConsoleRunner.3.12.0-beta1/tools/nunit3-console.exe ./Sailthru/Sailthru.Tests/bin/Release/Sailthru.Tests.dll

before_deploy:
  - nuget setApiKey $NUGET_API_KEY -Verbosity quiet >/dev/null 2>&1
  - msbuild /t:Pack /p:Configuration=Release Sailthru/Sailthru/Sailthru.csproj

deploy:
  skip_cleanup: true
  provider: script
  on:
    all_branches: true
  script: nuget push Sailthru/Sailthru/bin/Release/Sailthru.Client.*.nupkg

language: csharp
solution: Sailthru/Sailthru.sln

install:
  - nuget restore Sailthru/Sailthru.sln
  - msbuild /t:Restore Sailthru/Sailthru.sln
  - nuget install NUnit.Console -Version 3.12.0-beta1 -OutputDirectory testrunner

script:
  - msbuild /p:Configuration=Release Sailthru/Sailthru.sln
  - mono ./testrunner/NUnit.ConsoleRunner.3.12.0-beta1/tools/nunit3-console.exe ./Sailthru/Sailthru.Tests/bin/Release/Sailthru.Tests.dll

before_deploy:
  - nuget setApiKey $NUGET_API_KEY -Verbosity quiet >/dev/null 2>&1
  - msbuild /t:Pack /p:Configuration=Release Sailthru/Sailthru/Sailthru.csproj

deploy:
  skip_cleanup: true
  provider: script
  # on:
  #   branch: master
  script: nuget push Sailthru/Sailthru/bin/Release/Sailthru.Client.*.nupkg

Revert "[DEVOPS-256] deploy on all branches"
Revert "[DEVOPS-256] deploy on all branches"

This reverts commit 4b467f551ffa45770b1c00e8ae2dbceb906657a1.
