Skip to content

Commit 0b4b301

Browse files
authored
Merge pull request #95 from watson-developer-cloud/development
Release 0.2.0
2 parents 32e4b08 + 7c8e5e5 commit 0b4b301

File tree

191 files changed

+19670
-1184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+19670
-1184
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*.user
77
*.userosscache
88
*.sln.docstates
9+
config
910

1011
# User-specific files (MonoDevelop/Xamarin Studio)
1112
*.userprefs
@@ -137,7 +138,7 @@ publish/
137138
# Publish Web Output
138139
*.[Pp]ublish.xml
139140
*.azurePubxml
140-
# TODO: Comment the next line if you want to checkin your web deploy settings
141+
# TODO: Comment the next line if you want to checkin your web deploy settings
141142
# but database connection strings (with potential passwords) will be unencrypted
142143
*.pubxml
143144
*.publishproj

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Change Log
2+
==========
3+
## Version 0.2.0
4+
_2017-04-25_
5+
6+
* New: Abstracted `Visual Recognition` service.
7+
* New: Completed `Speech to Text` abstraction.
8+
* New: Completed `Conversation` abstraction.
9+
* New: Integration and Unit tests.
10+
* New: Example service calls.
11+
* Fix: Enabled fail build on failed test in AppVeyor.
12+
* Fix: Fixed all integration and unit tests.
13+
14+
## Version 0.1.0-alpha
15+
_2017-02-12_
16+
17+
Initial alpha release of .NET Standard SDK. Service supported include:
18+
* Conversation
19+
* Speech to Text
20+
* Text to Speech
21+
* Language Translator
22+
* Personality Insights
23+
* Tone Analyzer

IBM.WatsonDeveloperCloud.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "IBM.WatsonDeveloperCloud.Pe
9292
EndProject
9393
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "IBM.WatsonDeveloperCloud.Conversation.Example", "examples\IBM.WatsonDeveloperCloud.Conversation.Example\IBM.WatsonDeveloperCloud.Conversation.Example.xproj", "{FE6E9777-A5FC-4842-98EC-159CB3471D08}"
9494
EndProject
95+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "IBM.WatsonDeveloperCloud.VisualRecognition.Example", "examples\IBM.WatsonDeveloperCloud.VisualRecognition.Example\IBM.WatsonDeveloperCloud.VisualRecognition.Example.xproj", "{8F6C1BE5-D4C6-428F-B196-610297951444}"
96+
EndProject
9597
Global
9698
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9799
Debug|Any CPU = Debug|Any CPU
@@ -222,6 +224,10 @@ Global
222224
{FE6E9777-A5FC-4842-98EC-159CB3471D08}.Debug|Any CPU.Build.0 = Debug|Any CPU
223225
{FE6E9777-A5FC-4842-98EC-159CB3471D08}.Release|Any CPU.ActiveCfg = Release|Any CPU
224226
{FE6E9777-A5FC-4842-98EC-159CB3471D08}.Release|Any CPU.Build.0 = Release|Any CPU
227+
{8F6C1BE5-D4C6-428F-B196-610297951444}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
228+
{8F6C1BE5-D4C6-428F-B196-610297951444}.Debug|Any CPU.Build.0 = Debug|Any CPU
229+
{8F6C1BE5-D4C6-428F-B196-610297951444}.Release|Any CPU.ActiveCfg = Release|Any CPU
230+
{8F6C1BE5-D4C6-428F-B196-610297951444}.Release|Any CPU.Build.0 = Release|Any CPU
225231
EndGlobalSection
226232
GlobalSection(SolutionProperties) = preSolution
227233
HideSolutionNode = FALSE
@@ -268,5 +274,6 @@ Global
268274
{B46F9958-1284-4EBD-A5B3-C4EE6ED14D8D} = {D65AC99F-4E63-4362-8765-EB6F15838CA0}
269275
{2A13BC39-4315-4501-AB8E-68F6E7F97EAB} = {D65AC99F-4E63-4362-8765-EB6F15838CA0}
270276
{FE6E9777-A5FC-4842-98EC-159CB3471D08} = {8B927AB2-21F8-40DE-BE6B-5B1105453133}
277+
{8F6C1BE5-D4C6-428F-B196-610297951444} = {A1BC3262-1837-40D9-A530-DCFE679927C2}
271278
EndGlobalSection
272279
EndGlobal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ You can get the latest SDK packages through NuGet. Installation instructions can
2626
* [Speech to Text](/src/IBM.WatsonDeveloperCloud.SpeechToText)
2727
* [Text to Speech](/src/IBM.WatsonDeveloperCloud.TextToSpeech)
2828
* [Conversation](/src/IBM.WatsonDeveloperCloud.Conversation)
29-
<!-- * [Discovery](/src/IBM.WatsonDeveloperCloud.Discovery) -->
30-
<!-- * [Visual Recognition](/src/IBM.WatsonDeveloperCloud.VisualRecognition) -->
29+
* [Visual Recognition](/src/IBM.WatsonDeveloperCloud.VisualRecognition)
3130
* [Language Translator](/src/IBM.WatsonDeveloperCloud.LanguageTranslator)
3231
* [Tone Analyzer](/src/IBM.WatsonDeveloperCloud.ToneAnalyzer)
3332
* [Personality Insights](/src/IBM.WatsonDeveloperCloud.PersonalityInsights)
33+
<!-- * [Discovery](/src/IBM.WatsonDeveloperCloud.Discovery) -->
3434

3535
Or manually [here][latest_release].
3636

@@ -55,7 +55,7 @@ See [CONTRIBUTING.md](.github/CONTRIBUTING.md).<TODO revise coding standard>
5555
[wdc]: http://www.ibm.com/watson/developercloud/
5656
[bluemix_registration]: http://bluemix.net/registration
5757
[ibm-github]: http://ibm.github.io/
58-
<TODO latest release url>
58+
5959
[latest_release]: https://github.com/watson-developer-cloud/dotnet-standard-sdk/releases/latest
6060
[dw-answers]: https://developer.ibm.com/answers/questions/ask/?topics=watson
6161
[stack-overflow]: http://stackoverflow.com/questions/ask?tags=ibm-watson

appveyor.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ branches:
44
- gh-pages
55
configuration: Release
66
platform: Any CPU
7+
clone_folder: C:\projects\dotnet-standard-sdk
78
environment:
89
COVERALLS_REPO_TOKEN:
910
secure: Dnsrk2n+VNE4swcbTLXpfnHwUwTWT8TqMiMkthU6mq/ohNq9dA2rrSA6kdLDBKME
1011
GH_TOKEN:
1112
secure: J0LjUlYl+lGJMLBcOgVF1m1I07nyr+8yFOMaNBA23RGLMJKvYnRlhmGWXp07ejgu
13+
CRED_SECRET:
14+
secure: eEcA/09B7XzeTSb3GlaeqcWfQ/TemXxAq9/0AFM5+z8=
15+
VCAP_SERVICES: C:\projects\dotnet-standard-sdk\config
1216
install:
1317
- cmd: >-
1418
rm -rf packages
@@ -22,6 +26,11 @@ install:
2226
nuget install -Verbosity quiet -OutputDirectory packages -Version 0.7.0 coveralls.net
2327
2428
nuget install -Verbosity quiet -OutputDirectory packages -Version 1.8.13 Doxygen
29+
30+
nuget install -Verbosity quiet -OutputDirectory packages secure-file -ExcludeVersion
31+
32+
33+
if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" packages\secure-file\tools\secure-file -decrypt config.enc -secret %CRED_SECRET%
2534
before_build:
2635
- ps: dotnet restore
2736
build:
@@ -73,15 +82,20 @@ after_build:
7382
{
7483
Write-Output "branchName is $branchName. Not generating documentation."
7584
}
85+
86+
87+
Move-Item C:\projects\dotnet-standard-sdk\test\IBM.WatsonDeveloperCloud.VisualRecognition.IntegrationTests\exampleData C:\projects\dotnet-standard-sdk
88+
89+
Move-Item C:\projects\dotnet-standard-sdk\test\IBM.WatsonDeveloperCloud.SpeechToText.IntegrationTests\Assets C:\projects\dotnet-standard-sdk
7690
test_script:
77-
- ps: "if((Test-Path -Path coverage))\n{\n rm coverage -r -force\n}\nNew-Item -path . -name coverage -itemtype directory\nForEach ($folder in (Get-ChildItem -Path C:\\projects\\dotnet-standard-sdk\\test -Directory)) { \n if(!$folder.Name.Contains(\"VisualRecognition\") -and !$folder.Name.Contains(\"Discovery\"))\n {\n dotnet test $folder.FullName\n $openCover = 'C:\\projects\\dotnet-standard-sdk\\packages\\OpenCover.4.6.519\\tools\\OpenCover.Console.exe' \n $targetArgs = '-targetargs: test ' + $folder.FullName + ' -c Release -f netcoreapp1.0'\n $filter = '-filter:+[IBM.WatsonDeveloperCloud*]*-[*Tests*]*-[*Example*]*'\n & $openCover '-target:C:\\Program Files\\dotnet\\dotnet.exe' $targetArgs '-register:user' $filter '-oldStyle' '-mergeoutput' '-hideskipped:File' '-searchdirs:$testdir\\bin\\release\\netcoreapp1.0' '-output:coverage\\coverage.xml'\n }\n}\n\nC:\\projects\\dotnet-standard-sdk\\packages\\ReportGenerator.2.4.5.0\\tools\\ReportGenerator.exe -reports:coverage\\coverage.xml -targetdir:coverage -verbosity:Error\n\nif($env:COVERALLS_REPO_TOKEN)\n{\n C:\\projects\\dotnet-standard-sdk\\packages\\coveralls.net.0.7.0\\tools\\csmacnz.Coveralls.exe --opencover -i coverage\\coverage.xml --useRelativePaths\n}\nelse\n{\n Write-Output \"There is no Coveralls Repo Token - not pushing coverage.\"\n}"
91+
- ps: "if((Test-Path -Path coverage))\n{\n rm coverage -r -force\n}\nNew-Item -path . -name coverage -itemtype directory\nForEach ($folder in (Get-ChildItem -Path C:\\projects\\dotnet-standard-sdk\\test -Directory)) { \n if(!$folder.Name.Contains(\"Discovery\") -and !$folder.Name.Contains(\"TextToSpeech\") -and !$folder.Name.Contains(\"PersonalityInsights\"))\n {\n if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)\n {\n Write-Output \"No pull request number. Executing tests\"\n dotnet test $folder.FullName\n if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) }\n echo \"Test passed: $?\"\n echo \"LastExitCode: $LastExitCode\"\n $openCover = 'C:\\projects\\dotnet-standard-sdk\\packages\\OpenCover.4.6.519\\tools\\OpenCover.Console.exe' \n $targetArgs = '-targetargs: test ' + $folder.FullName + ' -c Release -f netcoreapp1.0'\n $filter = '-filter:+[IBM.WatsonDeveloperCloud*]*-[*Tests*]*-[*Example*]*'\n & $openCover '-target:C:\\Program Files\\dotnet\\dotnet.exe' $targetArgs '-register:user' $filter '-oldStyle' '-mergeoutput' '-hideskipped:File' '-searchdirs:$testdir\\bin\\release\\netcoreapp1.0' '-output:coverage\\coverage.xml'\n }\n else\n {\n Write-Output \"Pull request number is $env:APPVEYOR_PULL_REQUEST_NUMBER. Skipping tests.\"\n }\n }\n}\n\nC:\\projects\\dotnet-standard-sdk\\packages\\ReportGenerator.2.4.5.0\\tools\\ReportGenerator.exe -reports:coverage\\coverage.xml -targetdir:coverage -verbosity:Error\n\nif($env:COVERALLS_REPO_TOKEN)\n{\n C:\\projects\\dotnet-standard-sdk\\packages\\coveralls.net.0.7.0\\tools\\csmacnz.Coveralls.exe --opencover -i coverage\\coverage.xml --useRelativePaths\n}\nelse\n{\n Write-Output \"There is no Coveralls Repo Token - not pushing coverage.\"\n}"
7892
artifacts:
7993
- path: '\src\IBM.WatsonDeveloperCloud\bin\$(configuration)\*.nupkg'
8094
name: IBM.WatsonDeveloperCloud
8195
- path: '\src\IBM.WatsonDeveloperCloud.Conversation\bin\$(configuration)\*.nupkg'
8296
name: IBM.WatsonDeveloperCloud.Conversation
8397
- path: '\src\IBM.WatsonDeveloperCloud.LanguageTranslator\bin\$(configuration)\*.nupkg'
84-
name: IBM.WatsonDeveloperCloud.LanguageTranslation
98+
name: IBM.WatsonDeveloperCloud.LanguageTranslator
8599
- path: '\src\IBM.WatsonDeveloperCloud.PersonalityInsights\bin\$(configuration)\*.nupkg'
86100
name: IBM.WatsonDeveloperCloud.PersonalityInsights
87101
- path: '\src\IBM.WatsonDeveloperCloud.SpeechToText\bin\$(configuration)\*.nupkg'
@@ -90,9 +104,12 @@ artifacts:
90104
name: IBM.WatsonDeveloperCloud.TextToSpeech
91105
- path: '\src\IBM.WatsonDeveloperCloud.ToneAnalyzer\bin\$(configuration)\*.nupkg'
92106
name: IBM.WatsonDeveloperCloud.ToneAnalyzer
107+
- path: '\src\IBM.WatsonDeveloperCloud.VisualRecognition\bin\$(configuration)\*.nupkg'
108+
name: IBM.WatsonDeveloperCloud.VisualRecognition
93109
deploy:
94110
- provider: NuGet
95111
api_key:
96112
secure: AaqUbQ5mJm8bYbpNH7GbAzYl45fZZHpqeNdtSd0wQNxjgYmLmvtMU5eByA/mkhxB
97113
on:
98114
branch: release
115+
APPVEYOR_REPO_TAG: true

config.enc

2.75 KB
Binary file not shown.

examples/IBM.WatsonDeveloperCloud.Conversation.Example/ConversationServiceExample.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ private void Message()
4040
{
4141
MessageRequest messageRequest = new MessageRequest()
4242
{
43-
Input = new InputData()
44-
{
45-
Text = _inputString
46-
}
43+
Input = new { Text = _inputString }
4744
};
4845

4946
Console.WriteLine(string.Format("Calling Message(\"{0}\")...", _inputString));

examples/IBM.WatsonDeveloperCloud.Conversation.Example/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version": "0.1.1-alpha",
2+
"version": "0.2.0",
33
"dependencies": {
4-
"IBM.WatsonDeveloperCloud": "0.1.1-alpha",
5-
"IBM.WatsonDeveloperCloud.Conversation": "0.1.1-alpha",
4+
"IBM.WatsonDeveloperCloud": "0.2.0",
5+
"IBM.WatsonDeveloperCloud.Conversation": "0.2.0",
66
"Microsoft.AspNet.WebApi.Client": "5.2.3",
77
"Microsoft.NETCore.App": {
88
"type": "platform",

examples/IBM.WatsonDeveloperCloud.LanguageTranslator.Example/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version": "0.1.1-alpha",
2+
"version": "0.2.0",
33
"dependencies": {
4-
"IBM.WatsonDeveloperCloud": "0.1.1-alpha",
5-
"IBM.WatsonDeveloperCloud.LanguageTranslator": "0.1.1-alpha",
4+
"IBM.WatsonDeveloperCloud": "0.2.0",
5+
"IBM.WatsonDeveloperCloud.LanguageTranslator": "0.2.0",
66
"Microsoft.AspNet.WebApi.Client": "5.2.3",
77
"Microsoft.NETCore.App": {
88
"type": "platform",

examples/IBM.WatsonDeveloperCloud.PersonalityInsights.Example/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version": "0.1.1-alpha",
2+
"version": "0.2.0",
33
"dependencies": {
4-
"IBM.WatsonDeveloperCloud": "0.1.1-alpha",
5-
"IBM.WatsonDeveloperCloud.PersonalityInsights": "0.1.1-alpha",
4+
"IBM.WatsonDeveloperCloud": "0.2.0",
5+
"IBM.WatsonDeveloperCloud.PersonalityInsights": "0.2.0",
66
"Microsoft.AspNet.WebApi.Client": "5.2.3",
77
"Microsoft.NETCore.App": {
88
"type": "platform",

0 commit comments

Comments
 (0)