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

liuxun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b2231b  SUBMARINE-414. Refine Github action and travis
3b2231b is described below

commit 3b2231bc577af7e0b06a743d31086bc5bdf64197
Author: Kent Yao <[email protected]>
AuthorDate: Mon Mar 9 22:00:16 2020 +0800

    SUBMARINE-414. Refine Github action and travis
    
    ### What is this PR for?
    
    1. rm rat from Travis which is duplicated with GitHub actions
    2. fix style check temporarily in GitHub action
    
    ### What type of PR is it?
    Improvement
    ### Todos
    no
    
    ### What is the Jira issue?
    * Open an issue on Jira 
https://issues.apache.org/jira/browse/SUBMARINE/SUBMARINE-414
    
    ### How should this be tested?
    
    pass both travis and github actions
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: Kent Yao <[email protected]>
    
    Closes #213 from yaooqinn/SUBMARINE-414 and squashes the following commits:
    
    2a1716b [Kent Yao] name
    61eb215 [Kent Yao] name
    e25a0a3 [Kent Yao] ignore
    0447c68 [Kent Yao] build before checkstyle
    9cc0be7 [Kent Yao] nit
    17aca49 [Kent Yao] rm clean
    b309c37 [Kent Yao] cahce
    6cb6e4e [Kent Yao] cahce
    7f3fa9d [Kent Yao] SUBMARINE-414. Refine Github action and travis
---
 .github/workflows/master.yml | 57 ++++++++++++++++++++++++++++++++++++++++++--
 .gitignore                   |  1 +
 .travis.yml                  |  6 -----
 3 files changed, 56 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index ce18aa3..677445e 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -10,6 +10,7 @@ on:
 
 jobs:
   build:
+    name: Build
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
@@ -17,10 +18,35 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: '1.8'
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/com
+          key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-com-
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/org
+          key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-org-
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/net
+          key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-net-
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/io
+          key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-io-
       - name: Build with Maven
         run: |
           export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m  
-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN"
           mvn --no-transfer-progress -DskipTests install
+
   rat:
     name: Check License
     runs-on: ubuntu-latest
@@ -29,7 +55,7 @@ jobs:
       - uses: actions/setup-java@v1
         with:
           java-version: '1.8'
-      - run: mvn clean org.apache.rat:apache-rat-plugin:check
+      - run: mvn org.apache.rat:apache-rat-plugin:check
 
   linter:
     name: Check Style
@@ -39,4 +65,31 @@ jobs:
       - uses: actions/setup-java@v1
         with:
           java-version: '1.8'
-      - run: mvn checkstyle:check
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/com
+          key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-com-
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/org
+          key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-org-
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/net
+          key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-net-
+      - uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository/io
+          key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-io-
+      - name: Java Style
+        run: |
+          export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m  
-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN"
+          mvn --no-transfer-progress -DskipTests install checkstyle:check
diff --git a/.gitignore b/.gitignore
index 152c5ff..4259b33 100644
--- a/.gitignore
+++ b/.gitignore
@@ -83,5 +83,6 @@ spark-1.*-bin-hadoop*
 submarine-cloud/vendor/*
 submarine-cloud/output/*
 submarine-cloud/hack/conf/*
+submarine-cloud/bin/*
 
 submarine-security/spark-security/dependency-reduced-pom.xml
diff --git a/.travis.yml b/.travis.yml
index a811f7a..c60df85 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -98,12 +98,6 @@ before_install:
 
 matrix:
   include:
-    - name: Test License compliance using RAT tool
-      language: java
-      jdk: openjdk8
-      dist: xenial
-      env: PROFILE="" BUILD_FLAG="clean" 
TEST_FLAG="org.apache.rat:apache-rat-plugin:check" TEST_PROJECTS=""
-
     - name: Test submarine test-k8s
       dist: xenial
       services: docker


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to