Skip to content

Commit 35890c3

Browse files
authored
Merge pull request #1 from IBM/feature-ci
CI and semantic release
2 parents 85ab306 + 3ad44a2 commit 35890c3

24 files changed

+328
-105
lines changed

.bumpversion.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[bumpversion]
2+
current_version = 0.0.1
3+
commit = True
4+
message = [skip ci] docs: Update version numbers from {current_version} -> {new_version}
5+
6+
[bumpversion:file:Utilities/Constants.cs]
7+
search = {current_version}
8+
replace = {new_version}

.gitignore

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# =============== #
2+
# Unity generated #
3+
# =============== #
4+
Temp/
5+
Obj/
6+
UnityGenerated/
7+
Library/
8+
9+
# ===================================== #
10+
# Visual Studio / MonoDevelop generated #
11+
# ===================================== #
12+
ExportedObj/
13+
*.svd
14+
*.userprefs
15+
*.csproj
16+
*.pidb
17+
*.suo
18+
*.sln
19+
*.user
20+
*.unityproj
21+
*.booproj
22+
23+
# ============ #
24+
# OS generated #
25+
# ============ #
26+
.DS_Store
27+
.DS_Store?
28+
._*
29+
.Spotlight-V100
30+
.Trashes
31+
Icon?
32+
ehthumbs.db
33+
34+
# ============== #
35+
# Custom Ignores #
36+
# ============== #
37+
38+
/Clients
39+
Assets/StreamingAssets/Config.json
40+
Assets/StreamingAssets/Config.json.meta
41+
Resources.meta
42+
Scenes.meta
43+
Scripts.meta
44+
ThirdParty.meta
45+
Plugins.meta
46+
Prefabs.meta
47+
Examples.meta
48+
Docs.meta
49+
Art.meta
50+
LICENSE.meta
51+
CHANGELOG.md.meta
52+
README.md.meta
53+
Travis.meta
54+
exclude-filter.txt
55+
exclude-filter.txt.meta
56+
etc.meta
57+
/Travis/UnityTestProject/Assets/StreamingAssets/Config.json
58+
/Travis/UnityTestProject/Assets/StreamingAssets/Config.json.meta
59+
/Travis/UnityTestProject/Assets/StreamingAssets/Config.json.enc.meta
60+
/Config.json
61+
/Config.json.meta
62+
/Config.json.enc.meta
63+
/Travis/build.sh.meta
64+
/Travis/createProject.sh.meta
65+
/Travis/installSDK.sh.meta
66+
/Travis/installTestTools.sh.meta
67+
/Travis/installUnity.sh.meta
68+
/Travis/README.md.meta
69+
/Travis/runTests.sh.meta
70+
/Travis/TravisBuild.cs.meta
71+
Docs/publishing-release.md.meta
72+
*.html.meta
73+
*.md.meta
74+
*.txt.meta
75+
*.ps1.meta
76+
**/.swagger-codegen-ignore
77+
**/.swagger-codegen
78+
/Scripts/Editor/Help/
79+
/Scripts/Editor/Help.meta
80+
*/MRefBuilder.config.meta
81+
Travis.meta
82+
Widgets.meta
83+
ThirdParty.meta
84+
README.md.meta
85+
Plugins.meta
86+
BaseService.cs.meta
87+
CallbackDelegates.cs.meta
88+
Connection.meta
89+
Debug.meta
90+
IBM.Cloud.SDK.asmdef.meta
91+
IBMError.cs.meta
92+
IBMResponse.cs.meta
93+
IBMService.cs.meta
94+
Logging.meta
95+
RequestObject.cs.meta
96+
Tests.meta
97+
Utilities.meta

.releaserc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"branch": "master",
3+
"verifyConditions": ["@semantic-release/changelog", "@semantic-release/git", "@semantic-release/exec"],
4+
"prepare": [
5+
"@semantic-release/changelog",
6+
"@semantic-release/git",
7+
{
8+
"path": "@semantic-release/exec",
9+
"cmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
10+
}
11+
],
12+
"publish": ["@semantic-release/github"]
13+
}

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: node_js
2+
node_js:
3+
- "8.3"
4+
os:
5+
- osx
6+
osx_image: xcode61
7+
rvm:
8+
- 2.2
9+
cache:
10+
directories:
11+
- ./Unity
12+
before_install:
13+
- chmod a+x ./Travis/installUnity.sh
14+
- chmod a+x ./Travis/createProject.sh
15+
- chmod a+x ./Travis/installSDK.sh
16+
# - chmod a+x ./Travis/runTests.sh
17+
- npm install -g [email protected]
18+
install:
19+
- pip install bumpversion
20+
- npm install @semantic-release/exec
21+
- npm install @semantic-release/changelog
22+
- npm install @semantic-release/git
23+
- npm install @semantic-release/github
24+
- ./Travis/installUnity.sh
25+
script:
26+
- ./Travis/createProject.sh
27+
- ./Travis/installSDK.sh
28+
# - ./Travis/runTests.sh
29+
deploy:
30+
- provider: script
31+
skip_cleanup: true
32+
script: npx semantic-release

BaseService.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

CallbackDelegates.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

IBM.Cloud.SDK.asmdef.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.

IBMError.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

IBMResponse.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

IBMService.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# IBM Cloud Unity SDK Core
2+
[![Build Status](https://travis-ci.org/IBM/unity-sdk-core.svg?branch=master)](https://travis-ci.org/IBM/unity-sdk-core/)
3+
[![wdc-community.slack.com](https://wdc-slack-inviter.mybluemix.net/badge.svg)](http://wdc-slack-inviter.mybluemix.net/)
4+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
5+
[![CLA assistant](https://cla-assistant.io/readme/badge/IBM/unity-sdk-core)](https://cla-assistant.io/IBM/unity-sdk-core)
6+
7+
The IBM Cloud Unity SDK Core is a core project of Unity SDKs generated using the IBM OpenAPI SDK generator. Generated services should use this package as a submodule of their generate Unity SDK.
8+
9+
<details>
10+
<summary>Table of Contents</summary>
11+
12+
* [Before you begin](#before-you-begin)
13+
* [Configuring Unity](#configuring-unity)
14+
* [Getting the IBM Cloud Unity SDK Core and adding it to Unity](#getting-the-ibm-unity-sdk-core-and-adding-it-to-unity)
15+
* [Questions](#questions)
16+
* [Open Source @ IBM](#open-source--ibm)
17+
* [License](#license)
18+
* [Contributing](#contributing)
19+
20+
</details>
21+
22+
## Before you begin
23+
Ensure that you have the following prerequisites:
24+
25+
* [Unity][get_unity]. You can use the **free** Personal edition.
26+
27+
## Configuring Unity
28+
* Change the build settings in Unity (**File > Build Settings**) to any platform except for web player/Web GL. The IBM Watson SDK for Unity does not support Unity Web Player.
29+
* If using Unity 2018.2 or later you'll need to set **Scripting Runtime Version** and **Api Compatibility Level** in Build Settings to **.NET 4.x equivalent**. We need to access security options to enable TLS 1.2.
30+
31+
## Getting the IBM Unity SDK Core and adding it to Unity
32+
The IBM Unity SDK Core is mean to be used as a submodule in other generated Unity SDKs. The selected SDK release will point to a particular commit of the IBM Unity SDK Core. Clone the SDK into your Unity project's Assets directory, and initalize and update submodules.
33+
34+
```bash
35+
$ git clone [unity-sdk-url]
36+
$ cd [unity-sdk-directory]
37+
$ git submodule init
38+
$ git submodule update
39+
```
40+
41+
## Questions
42+
43+
If you are having difficulties using the APIs or have a question about the IBM Watson Services, please ask a question on
44+
[dW Answers](https://developer.ibm.com/answers/questions/ask/?topics=watson)
45+
or [Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-watson).
46+
47+
## Open Source @ IBM
48+
Find more open source projects on the [IBM Github Page](http://ibm.github.io/).
49+
50+
## License
51+
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](LICENSE).
52+
53+
## Contributing
54+
See [CONTRIBUTING.md](.github/CONTRIBUTING.md).
55+
56+
[get_unity]: https://unity3d.com/get-unity

RequestObject.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

Tests.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

ThirdParty.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Travis/createProject.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#! /bin/sh
2+
project="unity-sdk-travis"
3+
4+
echo "Attempting to create directory for empty project Travis/UnityTestProject..."
5+
mkdir -p Travis/UnityTestProject
6+
7+
echo "Attempting to create an empty project into Travis/UnityTestProject...."
8+
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
9+
-batchmode \
10+
-nographics \
11+
-silent-crashes \
12+
-logFile $(pwd)/createProject.log \
13+
-createProject $(pwd)/Travis/UnityTestProject \
14+
-quit
15+
if [ $? = 0 ] ; then
16+
echo "Project creation COMPLETED! Exited with $?"
17+
exit 0
18+
else
19+
echo "Project creation FAILED! Exited with $?"
20+
echo 'Logs create project'
21+
cat $(pwd)/createProject.log
22+
exit 1
23+
fi

Plugins.meta renamed to Travis/createProject.sh.meta

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Travis/installSDK.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#! /bin/sh
2+
project="unity-sdk-travis"
3+
4+
echo "Attempting to install IBM Unity SDK Core into the test project..."
5+
mkdir -p Travis/UnityTestProject/Assets/Watson/Core
6+
git clone -b $TRAVIS_BRANCH https://github.com/IBM/unity-sdk-core.git Travis/UnityTestProject/Assets/Watson/Core
7+
8+
if [ $? = 0 ] ; then
9+
echo "IBM Unity SDK Core install SUCCEEDED! Exited with $?"
10+
11+
echo "Attempting to create Travis/UnityTestProject/Assets/Scripts/Editor/"
12+
mkdir -p Travis/UnityTestProject/Assets/Scripts/Editor/
13+
if [ $? = 0 ] ; then
14+
echo "Creating Travis/UnityTestProject/Assets/Scripts/Editor/ SUCCEEDED! Exited with $?"
15+
else
16+
echo "Creating Travis/UnityTestProject/Assets/Scripts/Editor/ FAILED! EXITED WITH $?"
17+
fi
18+
else
19+
echo "WDC Unity SDK install FAILED! Exited with $?"
20+
exit 1
21+
fi

Logging.meta renamed to Travis/installSDK.sh.meta

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)