Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
829cad2
Add .circleci/config.yml
clicky Jun 4, 2023
50d51a8
Updated workflow
clicky Jun 4, 2023
e3941da
Added RhinoTestEnvironemnt
clicky Jun 4, 2023
44f5942
Updated the image
clicky Jun 4, 2023
d283c62
Updated workflow
clicky Jun 4, 2023
084bab5
rename
clicky Jun 4, 2023
af29d61
removed say-hello
clicky Jun 4, 2023
462721e
moved to orb
clicky Jun 4, 2023
097043a
Updated Nuget restore
clicky Jun 4, 2023
2e248af
Updated orb
clicky Jun 4, 2023
248428b
updated executor
clicky Jun 4, 2023
d118d03
Updated config to new Rhino Orb
clicky Jun 6, 2023
80cba8b
Updated jobs
clicky Jun 6, 2023
1499b0d
Updated command call
clicky Jun 6, 2023
1f2d28d
spacing?
clicky Jun 6, 2023
f27bc63
test
clicky Jun 6, 2023
7680918
remove jobs?
clicky Jun 6, 2023
e51659d
setup-env
clicky Jun 6, 2023
a2a8ba9
switched
clicky Jun 6, 2023
3ad7ffa
added in secret
clicky Jun 6, 2023
5edc335
Updated secrets
clicky Jun 6, 2023
0301cba
Updated
clicky Jun 7, 2023
d1757fa
v0.3.1
clicky Jun 7, 2023
4212914
Moved to v0.3.2 (Licensing should work now)
clicky Jun 7, 2023
124e54f
Set secret into circleci
clicky Jun 7, 2023
2f66888
Update config.yml
clicky Jun 7, 2023
7853b28
Update config.yml
clicky Jun 7, 2023
0db1eba
Update config.yml
clicky Jun 7, 2023
4753427
Removed unecesary token
clicky Jun 14, 2023
bfe9924
Merge remote-tracking branch 'origin/circleci-project-setup' into cir…
clicky Jun 14, 2023
a0e9099
Upped to 0.3.3
clicky Jun 14, 2023
a3cb4cf
Update config.yml
clicky Jun 19, 2023
b10a69c
Update config.yml
clicky Jul 11, 2023
9ee6f2c
Upgraded Versions
clicky Jul 15, 2023
cf32bd0
Updated the multi-target attibute
clicky Jul 15, 2023
15c1ffc
Merge remote-tracking branch 'origin/circleci-project-setup' into cir…
clicky Jul 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

# The Windows orb gives you everything you
# need to start using the Windows executor.
orbs:
rhino: crashcloud/rhino@0.4.0


# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/configuration-reference/#jobs
jobs:
setup-env:
machine:
image: 'windows-server-2022-gui:current'
resource_class: windows.medium
shell: powershell.exe -ExecutionPolicy Bypass

steps:

- checkout

- rhino/setup_rhino:
version: '7'

- run:
name: Restore NuGet Packages
command: nuget restore NRhinoGenerator.sln

- run:
name: Build
command: dotnet build NRhinoGenerator.sln /p:Configuration=Release

- run:
name: Run Tests
command: |
# Change the path and command according to your test project
cd NRhinoGenerator
dotnet test


# Orchestrate jobs using workflows
# See: https://circleci.com/docs/configuration-reference/#workflows
workflows:
unit-test:
jobs:
- setup-env
4 changes: 2 additions & 2 deletions src/NRhinoGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

<ItemGroup>
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="RhinoCommon" Version="7.21.22208.13001" IncludeAssets="compile;build" Condition="'$(TargetFramework)' == 'net48'" />
<PackageReference Include="RhinoCommon" Version="8.0.23094.11475-wip" IncludeAssets="compile;build" Condition="'$(TargetFramework)' == 'net7.0'" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/NBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Tests
{

[TestFixture]
[MultiRhinoFixtureAttribute]
public class NBox_Tests
{
public const int TEST_COUNT = 10_000;
Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/NPoint3d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Tests
{

[TestFixture]
[MultiRhinoFixtureAttribute]
public class NPoint3d_Tests
{
public const int TEST_COUNT = 10_000;
Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/NVector3d.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Tests
{

[TestFixture]
[MultiRhinoFixtureAttribute]
public class NVector3d_Tests
{
public const int TEST_COUNT = 10_000;
Expand Down
21 changes: 21 additions & 0 deletions tests/Tests/Properties/MultiRhinoFixtureAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
public class MultiRhinoFixtureAttribute : RhinoFixtureAttribute
{

public MultiRhinoFixtureAttribute()
{
#if NET48
RhinoVersion version = RhinoVersion.v7;
#endif

#if NET5_0_OR_GREATER
RhinoVersion version = RhinoVersion.v8;
#endif

var options = new FixtureOptions
{
Version = version,
};
Init(options);
}

}
5 changes: 3 additions & 2 deletions tests/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

<ItemGroup>
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="RhinoCommon" Version="7.21.22208.13001" IncludeAssets="compile;build" Condition="'$(TargetFramework)' == 'net48'" />
<PackageReference Include="RhinoCommon" Version="8.0.23094.11475-wip" IncludeAssets="compile;build" Condition="'$(TargetFramework)' == 'net7.0'" />
<PackageReference Include="RhinoTestEnvironment" Version="1.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down