dist: xenial
language: csharp
solution: encompass-cs.sln
mono: none
dotnet: 2.1.502

script:
  - dotnet restore
  - dotnet build -c Release
  - dotnet test -c Release

deploy:
  skip_cleanup: true
  provider: script
  script: dotnet nuget push ./encompass-cs/bin/Release/EncompassECS.Framework.*.nupkg -k $API_KEY -s $NUGET_SOURCE
  on:
    tags: true
    repo: encompass-ecs/encompass-cs