diff --git a/.travis.yml b/.travis.yml
index 2bf2c06639e1..ff9d87dfd29b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,5 +30,8 @@ install:
- true
script:
- - mvn -V -B test site
+ - mvn -V -B -Pcoverage test site
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/pom.xml b/pom.xml
index 9f7a33a55598..252f0a81dbe4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -92,7 +92,9 @@
2.0.3
${settings.localRepository}/org/mortbay/jetty/alpn/jetty-alpn-agent/${jetty.alpnAgent.version}/jetty-alpn-agent-${jetty.alpnAgent.version}.jar
-javaagent:${jetty.alpnAgent.path}
+ -D_
-D_
+ -Xmx128m
${project.basedir}/src/build/thrift.${os.detected.classifier}
${project.basedir}/src/main/thrift
${project.basedir}/src/test/thrift
@@ -572,7 +574,7 @@
**/TestUtil*
random
- ${argLine.alpnAgent} ${argLine.leak} -Xmx128m
+ ${argLine.memOpts} ${argLine.alpnAgent} ${argLine.leak} ${argLine.coverage}
@@ -733,5 +735,39 @@
-Dio.netty.leakDetectionLevel=paranoid
+
+ coverage
+
+ -Xmx384m
+ ${jacoco.argLine}
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.7.7.201606060606
+
+
+ jacoco-prepare-agent
+
+ prepare-agent
+
+
+ jacoco.argLine
+
+
+
+ jacoco-report
+ test
+
+ report
+
+
+
+
+
+
+