Skip to content

Commit

Permalink
Merge branch 'develop' into discovery-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio authored Dec 14, 2017
2 parents 7dbf0dc + ca526cf commit ba7b146
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[bumpversion]
current_version = 4.1.0
commit = True
tag = True

[bumpversion:file:README.md]

Expand Down Expand Up @@ -34,4 +32,3 @@ tag = True
[bumpversion:file:visual-recognition/README.md]
search = {current_version}
replace = {new_version}

8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,13 @@ deploy:
repo: watson-developer-cloud/java-sdk
jdk: oraclejdk7

- provider: releases
api_key: ${GITHUB_TOKEN_RELEASES}
file: java-sdk/build/libs/jar-with-dependencies-${TRAVIS_BRANCH}.jar
skip_cleanup: true
on:
repo: watson-developer-cloud/java-sdk
jdk: oraclejdk7
tags: true
notifications:
email: true
1 change: 1 addition & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
compile group: 'org.glassfish.jersey.bundles.repackaged', name: 'jersey-jsr166e', version: '2.25.1'
testCompile group: 'simple-jndi', name: 'simple-jndi', version: '0.11.4.1'

signature 'org.codehaus.mojo.signature:java17:1.0@signature'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;

import java.io.InputStream;
import java.util.Hashtable;
Expand Down Expand Up @@ -131,7 +130,6 @@ public void testGetUserCredentialsWithPlan() {
*/
@Test
public void testGetAPIUrlFromJDNI() {
assumeTrue(!System.getenv().containsKey("TRAVIS"));
assertEquals(CredentialUtils.getAPIUrlTest(SERVICE_NAME), PERSONALITY_INSIGHTS_URL);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,11 @@ public void testProfileBuilders() {
.html(text)
.contentLanguage(ProfileOptions.ContentLanguage.ES)
.acceptLanguage(ProfileOptions.AcceptLanguage.EN)
.csvHeaders(true)
.build();
final ProfileOptions newOptions = options.newBuilder().build();
assertEquals(newOptions.body(), text);
assertEquals(newOptions.contentLanguage(), ProfileOptions.ContentLanguage.ES);
assertEquals(newOptions.acceptLanguage(), ProfileOptions.AcceptLanguage.EN);
assertEquals(newOptions.csvHeaders(), true);
}

/**
Expand Down

0 comments on commit ba7b146

Please sign in to comment.