Skip to content

Commit d31e3cf

Browse files
Added codecov
1 parent 6102075 commit d31e3cf

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ cache:
99
directories:
1010
- $HOME/.m2/repository
1111
before_install:
12+
- pip install --user codecov
1213
- openssl aes-256-cbc -K $encrypted_a973fe4f8e79_key -iv $encrypted_a973fe4f8e79_iv
1314
-in config.properties.enc -out src/test/resources/config.properties -d
1415
notifications:
@@ -17,5 +18,6 @@ env:
1718
global:
1819
- secure: VvKBWj1OCu7SH+utwqe7kdli0N7jTYQ7D/citdFIV0cDjpcX3MwxfPcIeMvOuWLgJKaOSD4xnG9pOgMoLMMCGcsCHa2bqx78clA8t4sV7I0sx8pSN2Iuj/wQJvNV3/uEETC84+P9hKIt+o8JZqhgC1GEpz5fbyKyUIlRkspW1WQ=
1920
after_success:
21+
- codecov
2022
- mvn javadoc:javadoc
2123
- .utility/push-javadoc-to-gh-pages.sh

examples/java/com/ibm/watson/developer_cloud/speech_to_text/v1/RecognizeUsingWebSockets.java renamed to examples/java/com/ibm/watson/developer_cloud/speech_to_text/v1/RecognizeUsingWebSocketsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Recognize using WebSockets a sample wav file and print the transcript into the console output.
1414
*/
15-
public class RecognizeUsingWebSockets {
15+
public class RecognizeUsingWebSocketsExample {
1616
private static CountDownLatch lock = new CountDownLatch(1);
1717

1818
public static void main(String[] args) throws FileNotFoundException, InterruptedException {

pom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45
<groupId>com.ibm.watson.developer_cloud</groupId>
56
<version>2.6.1-SNAPSHOT</version>
@@ -139,6 +140,9 @@
139140
<excludes>
140141
<exclude>com/ibm/watson/developer_cloud/*/v*/model/**/*.class</exclude>
141142
</excludes>
143+
<excludes>
144+
<exclude>com/ibm/watson/developer_cloud/*/**/*Example.class</exclude>
145+
</excludes>
142146
</instrumentation>
143147
</configuration>
144148
</plugin>
@@ -171,6 +175,31 @@
171175
</execution>
172176
</executions>
173177
</plugin>
178+
<plugin>
179+
<groupId>org.jacoco</groupId>
180+
<artifactId>jacoco-maven-plugin</artifactId>
181+
<version>0.7.5.201505241946</version>
182+
<configuration>
183+
<excludes>
184+
<exclude>com/ibm/watson/developer_cloud/*/v*/model/**/*.class</exclude>
185+
<exclude>com/ibm/watson/developer_cloud/**/*Example.*</exclude>
186+
</excludes>
187+
</configuration>
188+
<executions>
189+
<execution>
190+
<goals>
191+
<goal>prepare-agent</goal>
192+
</goals>
193+
</execution>
194+
<execution>
195+
<id>report</id>
196+
<phase>test</phase>
197+
<goals>
198+
<goal>report</goal>
199+
</goals>
200+
</execution>
201+
</executions>
202+
</plugin>
174203
</plugins>
175204
<resources>
176205
<resource>

0 commit comments

Comments
 (0)