diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e4e0bc8 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,46 @@ +version: 2.1 + +defaults: &defaults + working_directory: ~/repo + docker: + - image: mcr.microsoft.com/dotnet/core/sdk:3.0 + environment: + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + +jobs: + test: + <<: *defaults + steps: + - checkout + - run: dotnet restore + - run: dotnet build -c Release + - run: dotnet test -c Release + - persist_to_workspace: + root: . + paths: ./Graph/bin + + deploy: + <<: *defaults + steps: + - checkout + - attach_workspace: + at: . + - run: dotnet nuget push ./Bonk/bin/Release/MoonTools.Core.Graph.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json + +workflows: + version: 2 + test_and_deploy: + jobs: + - test: + filters: + tags: + only: /.*/ + - deploy: + requires: + - test + filters: + branches: + ignore: /.*/ + tags: + only: /^\d+\.\d+\.\d+(-rc\d+)?$/ diff --git a/Graph/MoonTools.Core.Graph.csproj b/Graph/MoonTools.Core.Graph.csproj index c61d549..95a7953 100644 --- a/Graph/MoonTools.Core.Graph.csproj +++ b/Graph/MoonTools.Core.Graph.csproj @@ -1,6 +1,18 @@ + 1.0.0 netstandard2.0 + A GC-friendly graph theory library for .NET Core intended for use with games. + MoonTools.Core.Graph + MoonTools.Core.Graph + Moonside Games + Evan Hemsley + Evan Hemsley 2019 + MoonTools.Core.Graph + true + MoonTools.Core.Graph + LGPL-3.0-only + https://github.com/MoonsideGames/MoonTools.Core.Graph