File tree Expand file tree Collapse file tree 17 files changed +33
-28
lines changed
src/test/java/com/ibm/watson/discovery/v1
natural-language-classifier
natural-language-understanding
src/test/java/com/ibm/watson/visual_recognition/v4 Expand file tree Collapse file tree 17 files changed +33
-28
lines changed Original file line number Diff line number Diff line change 11{
22 "branch": "master",
33 "tagFormat": "java-sdk-${version}",
4+ "debug": true,
45 "plugins": [
6+ "@semantic-release/changelog",
57 "@semantic-release/commit-analyzer",
68 "@semantic-release/release-notes-generator",
7- "@semantic-release/git",
89 ["@semantic-release/github", {
910 "assets": [
1011 {"path": "ibm-watson/build/libs/ibm-watson-${nextRelease.version}-jar-with-dependencies.jar"}
1112 ]
1213 }],
1314 ["@semantic-release/exec", {
1415 "prepareCmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} --verbose --allow-dirty patch"
15- }]
16+ }],
17+ "@semantic-release/git"
1618 ]
17- }
19+ }
Original file line number Diff line number Diff line change @@ -23,14 +23,11 @@ before_install:
2323 echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
2424 fi
2525 - npm install -g npm@6.x
26- - nvm install 'lts/*'
2726- sudo apt-get update
2827- sudo apt-get install python
2928install :
3029- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then cd appscan; make asoc-tool; cd
3130 ../; fi
32- - npm install -g semantic-release@15.13.4
33- - npm install @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github @semantic-release/exec -D
3431- pip install --user bumpversion
3532before_script :
3633- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then chmod a+x ./appscan/ASOC.sh; fi
@@ -50,10 +47,15 @@ script:
5047- " ./gradlew docs > /dev/null"
5148after_success :
5249- bash <(curl -s https://codecov.io/bash)
50+ before deploy :
51+ - nvm install 12
52+ - npm install @semantic-release/changelog
53+ - npm install @semantic-release/exec
54+ - npm install @semantic-release/git
5355deploy :
5456- provider : script
5557 skip_cleanup : true
56- script : " semantic-release"
58+ script : npx semantic-release
5759 on :
5860 branch : master
5961 jdk : openjdk7
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ checkstyle {
6060dependencies {
6161 compile project(' :common' )
6262 testCompile project(' :common' ). sourceSets. test. output
63- compile ' com.ibm.cloud:sdk-core:7.0 .0'
63+ compile ' com.ibm.cloud:sdk-core:7.1 .0'
6464 signature ' org.codehaus.mojo.signature:java17:1.0@signature'
6565}
6666
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ checkstyle {
5858}
5959
6060dependencies {
61- compile ' com.ibm.cloud:sdk-core:7.0 .0'
61+ compile ' com.ibm.cloud:sdk-core:7.1 .0'
6262 signature ' org.codehaus.mojo.signature:java17:1.0@signature'
6363}
6464
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ checkstyle {
6060dependencies {
6161 compile project(' :common' )
6262 testCompile project(' :common' ). sourceSets. test. output
63- compile ' com.ibm.cloud:sdk-core:7.0 .0'
63+ compile ' com.ibm.cloud:sdk-core:7.1 .0'
6464 signature ' org.codehaus.mojo.signature:java17:1.0@signature'
6565}
6666
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ checkstyle {
6464dependencies {
6565 compile project(' :common' )
6666 testCompile project(' :common' ). sourceSets. test. output
67- compile ' com.ibm.cloud:sdk-core:7.0 .0'
67+ compile ' com.ibm.cloud:sdk-core:7.1 .0'
6868 signature ' org.codehaus.mojo.signature:java17:1.0@signature'
6969}
7070
Original file line number Diff line number Diff line change 2222import com .ibm .cloud .sdk .core .security .BearerTokenAuthenticator ;
2323import com .ibm .cloud .sdk .core .security .IamAuthenticator ;
2424import com .ibm .cloud .sdk .core .service .exception .BadRequestException ;
25- import com .ibm .cloud .sdk .core .service .exception .ForbiddenException ;
2625import com .ibm .cloud .sdk .core .service .exception .InternalServerErrorException ;
2726import com .ibm .cloud .sdk .core .service .exception .NotFoundException ;
2827import com .ibm .cloud .sdk .core .service .exception .UnauthorizedException ;
@@ -421,7 +420,7 @@ public void badCredentialsThrowsException() {
421420 badService .listEnvironments (null ).execute ().getResult ();
422421 }
423422
424- @ Test (expected = ForbiddenException .class )
423+ @ Test (expected = NotFoundException .class )
425424 public void pingBadUrlThrowsException () {
426425 discovery .setServiceUrl ("https://gateway.watsonplatform.net/discovery-foo/api" );
427426 ping ();
@@ -1828,8 +1827,8 @@ public void tokenizationDictionaryOperationsAreSuccessful() throws InterruptedEx
18281827 TokenDictRule tokenDictRule = new TokenDictRule .Builder ()
18291828 .text ("token" )
18301829 .partOfSpeech ("noun" )
1831- .readings (Arrays .asList ("reading 1 " , "reading 2 " ))
1832- .tokens (Arrays .asList ("token 1 " , "token 2 " ))
1830+ .readings (Arrays .asList ("reading_1 " , "reading_2 " ))
1831+ .tokens (Arrays .asList ("token_1 " , "token_2 " ))
18331832 .build ();
18341833
18351834 // the service doesn't seem to like when we try and move too fast
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ checkstyle {
6060dependencies {
6161 compile project(' :common' )
6262 testCompile project(' :common' ). sourceSets. test. output
63- compile ' com.ibm.cloud:sdk-core:7.0 .0'
63+ compile ' com.ibm.cloud:sdk-core:7.1 .0'
6464 signature ' org.codehaus.mojo.signature:java17:1.0@signature'
6565}
6666
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ checkstyle {
6464dependencies {
6565 compile project(' :common' )
6666 testCompile project(' :common' ). sourceSets. test. output
67- compile ' com.ibm.cloud:sdk-core:7.0 .0'
67+ compile ' com.ibm.cloud:sdk-core:7.1 .0'
6868 signature ' org.codehaus.mojo.signature:java17:1.0@signature'
6969}
7070
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ checkstyle {
6060dependencies {
6161 compile project(' :common' )
6262 testCompile project(' :common' ). sourceSets. test. output
63- compile ' com.ibm.cloud:sdk-core:7.0 .0'
63+ compile ' com.ibm.cloud:sdk-core:7.1 .0'
6464 signature ' org.codehaus.mojo.signature:java17:1.0@signature'
6565}
6666
You can’t perform that action at this time.
0 commit comments