Skip to content

Commit

Permalink
Switched from github action to teamcity for CI (#28)
Browse files Browse the repository at this point in the history
* chore: updated unity version to 2021.3.34

* feat: teamcity build script

* fix: path to test scene

* chore: added test assembly to package

* chore: bump package version to 1.2.4
  • Loading branch information
Ale1 authored Sep 24, 2024
1 parent 7ab08dc commit 45480ec
Show file tree
Hide file tree
Showing 17 changed files with 164 additions and 40 deletions.
18 changes: 18 additions & 0 deletions Assets/Test/Editor/AutoBuild.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using UnityEditor;

namespace Splashdown.CI
{
public class BuildTools
{
// Start is called before the first frame update
[MenuItem("Splashdown/build")]
public static void AutoBuild()
{
string buildPath = "Builds/iOS";

BuildPipeline.BuildPlayer(new[] { "Assets/Test/SampleScene.unity" }, buildPath, BuildTarget.iOS, BuildOptions.StrictMode);
}

}
}

11 changes: 11 additions & 0 deletions Assets/Test/Editor/AutoBuild.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Packages/com.ale1.splashdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog
## com.ale1.Splashdown

## [1.2.4]
### Added
- Test assembly folder in Splashdown package
### Changed
- Bumped unity editor version to 2021.3.34

##[1.2.3]
### Added
- Wildcard character allowd in splashdown provider attribute filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ public override void OnInspectorGUI()
}
else
{

EditorGUI.BeginDisabledGroup(true);
EditorGUILayout.LabelField("Using Font:", $"Splashdown Default ({Constants.DefaultFontName})");
EditorGUI.EndDisabledGroup();
Expand Down
4 changes: 3 additions & 1 deletion Packages/com.ale1.splashdown/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# LICENCE

**Copyright 2023 - Alejandro Barbero - https://github.com/Ale1**
**Copyright 2023 - Alejandro Barbero - https://github.com/Ale1/Splashdown**

License Type: "MIT"

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
4 changes: 1 addition & 3 deletions Packages/com.ale1.splashdown/Runtime/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ public static class Constants
public const int DefaultWidth = 360;
public const int DefaultHeight = 360;
public const int DefaultSplashtime = 4; //seconds


}
}
}
8 changes: 8 additions & 0 deletions Packages/com.ale1.splashdown/Tests.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Packages/com.ale1.splashdown/Tests/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Packages/com.ale1.splashdown/Tests/Editor/SplashdownTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using NUnit.Framework;
using System.IO;
using UnityEngine;

namespace Splashdown.Tests
{
[TestFixture]
public class SplashdownTests
{
private string _projectRoot;

[SetUp]
public void Setup()
{
_projectRoot = Path.GetDirectoryName(Application.dataPath);
}

[Test][Category("Constants")]
public void FontPath_Roboto_Exists()
{
var path = Path.Combine(_projectRoot, Constants.FontPath_Roboto);
Assert.IsTrue(File.Exists(path), $"Font file at path {path} does not exist.");
}

[Test][Category("Constants")]
public void FontPath_NanumGothic_Exists()
{
var path = Path.Combine(_projectRoot, Constants.FontPath_NanumGothic);
Assert.IsTrue(File.Exists(path), $"Font file at path {path} does not exist.");
}
}
}

11 changes: 11 additions & 0 deletions Packages/com.ale1.splashdown/Tests/Editor/SplashdownTests.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions Packages/com.ale1.splashdown/Tests/Editor/Tests.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Tests",
"rootNamespace": "",
"references": [
"UnityEngine.TestRunner",
"UnityEditor.TestRunner",
"Splashdown"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll"
],
"autoReferenced": false,
"defineConstraints": [
"UNITY_INCLUDE_TESTS"
],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Packages/com.ale1.splashdown/Tests/Editor/Tests.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Packages/com.ale1.splashdown/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "com.ale1.splashdown",
"version": "1.2.3",
"version": "1.2.4",
"displayName": "Splashdown",
"description": "A unity open-source custom Splash splash and Icon generator",
"description": "A unity open-source custom Splash splash and Icon generator. \nSee https://github.com/Ale1/Splashdown for usage instructions.",
"documentationUrl": "https://github.com/Ale1/Splashdown",
"changelogUrl": "CHANGELOG.MD",
"licenseUrl": "LICENCE.MD",
Expand Down
8 changes: 4 additions & 4 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"dependencies": {
"com.unity.collab-proxy": "2.0.7",
"com.unity.collab-proxy": "2.2.0",
"com.unity.feature.2d": "2.0.0",
"com.unity.ide.rider": "3.0.24",
"com.unity.ide.visualstudio": "2.0.20",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ide.vscode": "1.2.5",
"com.unity.test-framework": "1.1.33",
"com.unity.textmeshpro": "3.0.6",
"com.unity.textmeshpro": "3.0.9",
"com.unity.timeline": "1.6.5",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",
Expand Down
52 changes: 26 additions & 26 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,38 @@
"dependencies": {}
},
"com.unity.2d.animation": {
"version": "7.0.11",
"version": "7.0.13",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.2d.common": "6.0.6",
"com.unity.2d.common": "6.0.7",
"com.unity.2d.sprite": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.uielements": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.aseprite": {
"version": "1.0.0",
"version": "1.1.0",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.common": "6.0.6",
"com.unity.2d.sprite": "1.0.0",
"com.unity.mathematics": "1.2.6",
"com.unity.modules.animation": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.2d.common": {
"version": "6.0.6",
"version": "6.0.7",
"depth": 2,
"source": "registry",
"dependencies": {
"com.unity.burst": "1.5.1",
"com.unity.2d.sprite": "1.0.0",
"com.unity.mathematics": "1.1.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.burst": "1.5.1"
"com.unity.modules.uielements": "1.0.0"
},
"url": "https://packages.unity.com"
},
Expand All @@ -57,13 +57,13 @@
"url": "https://packages.unity.com"
},
"com.unity.2d.psdimporter": {
"version": "6.0.7",
"version": "6.0.8",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.2d.animation": "7.0.9",
"com.unity.2d.common": "6.0.6",
"com.unity.2d.sprite": "1.0.0"
"com.unity.2d.common": "6.0.7",
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.animation": "7.0.13"
},
"url": "https://packages.unity.com"
},
Expand All @@ -78,9 +78,9 @@
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.1.0",
"com.unity.2d.common": "6.0.6",
"com.unity.2d.path": "5.0.2",
"com.unity.2d.common": "6.0.6",
"com.unity.mathematics": "1.1.0",
"com.unity.modules.physics2d": "1.0.0"
},
"url": "https://packages.unity.com"
Expand All @@ -92,19 +92,19 @@
"dependencies": {}
},
"com.unity.2d.tilemap.extras": {
"version": "2.2.6",
"version": "2.2.7",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.tilemap": "1.0.0",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.ugui": "1.0.0",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.burst": {
"version": "1.6.6",
"version": "1.8.11",
"depth": 3,
"source": "registry",
"dependencies": {
Expand All @@ -113,7 +113,7 @@
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": {
"version": "2.0.7",
"version": "2.2.0",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand All @@ -131,18 +131,18 @@
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.2d.animation": "7.0.11",
"com.unity.2d.animation": "7.0.13",
"com.unity.2d.pixel-perfect": "5.0.3",
"com.unity.2d.psdimporter": "6.0.7",
"com.unity.2d.psdimporter": "6.0.8",
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.spriteshape": "7.0.7",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.2d.tilemap.extras": "2.2.6",
"com.unity.2d.aseprite": "1.0.0"
"com.unity.2d.tilemap.extras": "2.2.7",
"com.unity.2d.aseprite": "1.1.0"
}
},
"com.unity.ide.rider": {
"version": "3.0.24",
"version": "3.0.31",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -151,7 +151,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.20",
"version": "2.0.22",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -185,7 +185,7 @@
"url": "https://packages.unity.com"
},
"com.unity.textmeshpro": {
"version": "3.0.6",
"version": "3.0.9",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -198,9 +198,9 @@
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0"
},
"url": "https://packages.unity.com"
Expand Down
1 change: 0 additions & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,6 @@ PlayerSettings:
allowUnsafeCode: 0
useDeterministicCompilation: 1
enableRoslynAnalyzers: 1
selectedPlatform: 3
additionalIl2CppArgs:
scriptingRuntimeVersion: 1
gcIncremental: 1
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2021.3.29f1
m_EditorVersionWithRevision: 2021.3.29f1 (204d6dc9ae1c)
m_EditorVersion: 2021.3.34f1
m_EditorVersionWithRevision: 2021.3.34f1 (25266724e7bd)

0 comments on commit 45480ec

Please sign in to comment.