yiming187 closed pull request #103: enable coveralls
URL: https://github.com/apache/kylin/pull/103
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
index ce76775c83..38dc93c62c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,8 +26,11 @@ addons:
 jdk:
   - oraclejdk8
 
+before_script:
+  - echo "MAVEN_OPTS='-Xms1024m -Xmx3072m -XX:MetaspaceSize=128m 
-XX:MaxMetaspaceSize=384m'" > ~/.mavenrc
+
 script:
-  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test 
+  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test  
coveralls:report
   - if [[ -n "${TRAVIS_PULL_REQUEST_SLUG}" && "${TRAVIS_PULL_REQUEST_SLUG}" != 
"${TRAVIS_REPO_SLUG}" ]]; then
         echo "The pull request from ${TRAVIS_PULL_REQUEST_SLUG} is an EXTERNAL 
pull request. Skip sonar analysis.";
     else
diff --git a/pom.xml b/pom.xml
index 43e96bb0b6..8c52f9cd89 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1022,7 +1022,7 @@
                 <plugin>
                     <groupId>org.jacoco</groupId>
                     <artifactId>jacoco-maven-plugin</artifactId>
-                    <version>0.7.8</version>
+                    <version>0.8.0</version>
                 </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
@@ -1257,12 +1257,6 @@
                     <plugin>
                         <groupId>org.jacoco</groupId>
                         <artifactId>jacoco-maven-plugin</artifactId>
-                        <configuration>
-                            <append>true</append>
-                            <destFile>
-                                ${sonar.jacoco.reportPath}
-                            </destFile>
-                        </configuration>
                         <executions>
                             <execution>
                                 <id>pre-test</id>
@@ -1270,6 +1264,8 @@
                                     <goal>prepare-agent</goal>
                                 </goals>
                                 <configuration>
+                                    <append>true</append>
+                                    
<destFile>${sonar.jacoco.reportPath}</destFile>
                                     
<propertyName>surefireArgLine</propertyName>
                                 </configuration>
                             </execution>
@@ -1279,6 +1275,9 @@
                                 <goals>
                                     <goal>report</goal>
                                 </goals>
+                                <configuration>
+                                    
<dataFile>${sonar.jacoco.reportPath}</dataFile>
+                                </configuration>
                             </execution>
                         </executions>
                     </plugin>
@@ -1310,6 +1309,11 @@
                             </argLine>
                         </configuration>
                     </plugin>
+                    <plugin>
+                        <groupId>org.eluder.coveralls</groupId>
+                        <artifactId>coveralls-maven-plugin</artifactId>
+                        <version>4.2.0</version>
+                    </plugin>
                 </plugins>
             </build>
         </profile>
@@ -1388,7 +1392,6 @@
                             </execution>
                         </executions>
                     </plugin>
-
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-surefire-plugin</artifactId>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to