diff --git a/.travis.yml b/.travis.yml index 244414e..22fb9ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,18 @@ dist: xenial language: csharp solution: encompass-cs.sln +mono: none +dotnet: 2.1.502 -install: - - nuget restore encompass-cs.sln - - nuget install NUnit.Console -OutputDirectory testrunner script: - - msbuild /p:Configuration=Release -Version 3.9.0 encompass-cs.sln - - mono ./testrunner/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe ./test/bin/Release/netcoreapp2.2/encompass-cs.dll + - 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