You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2021/01/31 21:51:48 UTC

[datasketches-java] branch master updated: Moving repo token to GHA.

This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git


The following commit(s) were added to refs/heads/master by this push:
     new ef1e903  Moving repo token to GHA.
ef1e903 is described below

commit ef1e9030fde31622b957b6153a197e597b9c9b67
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Sun Jan 31 13:51:28 2021 -0800

    Moving repo token to GHA.
---
 .github/workflows/maven.yml |  5 +++--
 pom.xml                     | 10 +++++++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 09b674c..9ffd060 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -8,6 +8,7 @@ on:
 
 env:
     MAVEN_OPTS: -Xmx4g -Xms1g
+    repo_token: z2NyvKNpclvuc31m2yfZrpzrPr1cnLjSd
 
 jobs:
     build:
@@ -35,8 +36,8 @@ jobs:
               targets: 'JDK_8;JAVA_HOME'
 
         - name: Install Dependencies
-          run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true -B -V -q --toolchains .github/workflows/.toolchains.xml
+          run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -Djar.creation=false -Dgpg.skip=true -B -V --toolchains .github/workflows/.toolchains.xml
 
         - name: Test & Report
           if: ${{ success() }}
-          run: mvn verify jacoco:prepare-agent jacoco:report coveralls:report -Dgpg.skip=true -B -V --toolchains .github/workflows/.toolchains.xml
+          run: mvn verify coveralls:report -Dcoveralls-repo-token=${repo_token} -Dmaven.javadoc.skip=true -Djar.creation=false -Dgpg.skip=true -B -V --toolchains .github/workflows/.toolchains.xml
diff --git a/pom.xml b/pom.xml
index 909ce70..81d9d1d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -91,6 +91,7 @@ under the License.
     <testng.version>7.1.0</testng.version>
 
     <!-- System-wide properties -->
+    <jar.creation>package</jar.creation>
     <maven.version>3.5.0</maven.version>
     <java.version>1.8</java.version>
     <maven.compiler.source>${java.version}</maven.compiler.source>
@@ -123,6 +124,7 @@ under the License.
     <!-- org.jacoco Maven Plugins -->
     <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
     <!-- org.eluder Maven Plugins -->
+    <coveralls-repo-token></coveralls-repo-token>
     <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
     <!-- other -->
     <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
@@ -216,12 +218,14 @@ under the License.
           <executions>
             <execution>
               <id>default-jar</id>
+              <phase>${jar.creation}</phase>
               <goals>
                 <goal>jar</goal>
               </goals>
             </execution>
             <execution>
               <id>default-test-jar</id>
+              <phase>${jar.creation}</phase>
               <goals>
                 <goal>test-jar</goal>
               </goals>
@@ -315,14 +319,14 @@ under the License.
           <executions>
             <execution>
               <id>attach-sources</id>
-              <phase>package</phase>
+              <phase>${jar.creation}</phase>
               <goals>
                 <goal>jar-no-fork</goal>
               </goals>
             </execution>
             <execution>
               <id>attach-test-sources</id>
-              <phase>package</phase>
+              <phase>${jar.creation}</phase>
               <goals>
                 <goal>test-jar-no-fork</goal>
               </goals>
@@ -369,7 +373,7 @@ under the License.
           <artifactId>coveralls-maven-plugin</artifactId>
           <version>${coveralls-maven-plugin.version}</version>
           <configuration>
-            <repoToken>z2NyvKNpclvuc31m2yfZrpzrPr1cnLjSd</repoToken>
+            <repoToken>${coveralls-repo-token}</repoToken>
           </configuration>
         </plugin>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org