Compare commits

..

No commits in common. "master" and "drone" have entirely different histories.

8 changed files with 61 additions and 18 deletions

46
.circleci/config.yml Normal file
View File

@ -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: ./Structs/bin
deploy:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: dotnet nuget push ./Structs/bin/Release/MoonTools.Core.Structs.*.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+)?$/

View File

@ -14,11 +14,8 @@ steps:
- name: deploy
image: mcr.microsoft.com/dotnet/core/sdk:3.1
environment:
API_KEY:
from_secret: API_KEY
commands:
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Structs.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Core.Structs.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json
when:
ref:
- refs/tags/*.*.*

View File

@ -1,6 +1,6 @@
# MoonTools.Structs
# MoonTools.Core.Structs
[![NuGet Badge](https://buildstats.info/nuget/MoonTools.Structs)](https://www.nuget.org/packages/MoonTools.Structs/)
[![Build Status](https://drone.moonside.games/api/badges/MoonsideGames/MoonTools.Structs/status.svg)](https://drone.moonside.games/MoonsideGames/MoonTools.Structs)
[![NuGet Badge](https://buildstats.info/nuget/MoonTools.Core.Structs)](https://www.nuget.org/packages/MoonTools.Core.Structs/)
[![CircleCI](https://circleci.com/gh/MoonsideGames/MoonTools.Core.Structs.svg?style=svg)](https://circleci.com/gh/MoonsideGames/MoonTools.Core.Structs)
This library contains structs that are generally useful in other MoonTools libraries.
This library contains structs that are generally useful in other MoonTools libraries.

View File

@ -1,7 +1,7 @@
using System;
using System.Numerics;
namespace MoonTools.Structs
namespace MoonTools.Core.Structs
{
public struct Position2D : IEquatable<Position2D>
{

View File

@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>MoonTools.Structs</RootNamespace>
<PackageId>MoonTools.Structs</PackageId>
<RootNamespace>MoonTools.Core.Structs</RootNamespace>
<PackageId>MoonTools.Core.Structs</PackageId>
<Version>3.0.1</Version>
<Authors>Evan Hemsley</Authors>
<Company>Moonside Games</Company>
<Product>MoonTools Core Structs</Product>
<Copyright>Evan Hemsley 2020</Copyright>
<Description>.NET Standard utility structs for game development</Description>
<Description>.NET Core Utility Structs for MonoGame</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyName>MoonTools.Structs</AssemblyName>
<PackageProjectUrl>https://gitea.moonside.games/MoonsideGames/MoonTools.Structs</PackageProjectUrl>
<AssemblyName>MoonTools.Core.Structs</AssemblyName>
<PackageProjectUrl>https://github.com/MoonsideGames/MoonTools.Core.Structs</PackageProjectUrl>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>

View File

@ -1,7 +1,7 @@
using System;
using System.Numerics;
namespace MoonTools.Structs
namespace MoonTools.Core.Structs
{
public struct Transform2D : IEquatable<Transform2D>
{

View File

@ -1,7 +1,7 @@
using FluentAssertions;
using NUnit.Framework;
using MoonTools.Structs;
using MoonTools.Core.Structs;
using System.Numerics;
namespace Tests

View File

@ -1,7 +1,7 @@
using FluentAssertions;
using NUnit.Framework;
using MoonTools.Structs;
using MoonTools.Core.Structs;
using System.Numerics;
namespace Tests
@ -65,4 +65,4 @@ namespace Tests
Vector2.Transform(new Vector2(-1, 0), transformC.TransformMatrix).Should().Be(new Vector2(-5, 0));
}
}
}
}