-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched from github action to teamcity for CI (#28)
* 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
Showing
17 changed files
with
164 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
|
||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
Packages/com.ale1.splashdown/Tests/Editor/SplashdownTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
11
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.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |