Compare commits

...

5 Commits

Author SHA1 Message Date
Evan Hemsley a3a5803961 update csproj file with new repo
continuous-integration/drone/push Build is passing Details
2020-02-20 15:38:09 -08:00
Evan Hemsley cda67af5b6 update description
continuous-integration/drone/push Build is passing Details
2020-02-20 15:21:07 -08:00
Evan Hemsley 05e1b2f8db change name to MoonTools.Structs
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details
2020-02-20 15:03:34 -08:00
Evan Hemsley 2dbf5e22f7 bye circleCI
continuous-integration/drone/push Build is passing Details
2020-02-20 14:54:10 -08:00
Evan Hemsley 7481c4d9a9 set env variable from secret
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details
2020-02-20 14:52:03 -08:00
8 changed files with 18 additions and 61 deletions

View File

@ -1,46 +0,0 @@
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,8 +14,11 @@ 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.Core.Structs.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Structs.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
when:
ref:
- refs/tags/*.*.*

View File

@ -1,6 +1,6 @@
# MoonTools.Core.Structs
# 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)
[![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)
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.Core.Structs
namespace MoonTools.Structs
{
public struct Position2D : IEquatable<Position2D>
{

View File

@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>MoonTools.Core.Structs</RootNamespace>
<PackageId>MoonTools.Core.Structs</PackageId>
<RootNamespace>MoonTools.Structs</RootNamespace>
<PackageId>MoonTools.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 Core Utility Structs for MonoGame</Description>
<Description>.NET Standard utility structs for game development</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyName>MoonTools.Core.Structs</AssemblyName>
<PackageProjectUrl>https://github.com/MoonsideGames/MoonTools.Core.Structs</PackageProjectUrl>
<AssemblyName>MoonTools.Structs</AssemblyName>
<PackageProjectUrl>https://gitea.moonside.games/MoonsideGames/MoonTools.Structs</PackageProjectUrl>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>

View File

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

View File

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

View File

@ -1,7 +1,7 @@
using FluentAssertions;
using NUnit.Framework;
using MoonTools.Core.Structs;
using MoonTools.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));
}
}
}
}