You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2022/08/08 12:31:50 UTC

[incubator-kyuubi] branch master updated: [KYUUBI #3199] [BUILD] Fix travis JAVA_HOME

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

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d4d2948b [KYUUBI #3199] [BUILD] Fix travis JAVA_HOME
9d4d2948b is described below

commit 9d4d2948bb3e89c0166aff3927a7f3032093cea1
Author: Cheng Pan <ch...@apache.org>
AuthorDate: Mon Aug 8 20:31:42 2022 +0800

    [KYUUBI #3199] [BUILD] Fix travis JAVA_HOME
    
    ### _Why are the changes needed?_
    
    Ref https://github.com/apache/rocketmq/blob/develop/.travis.yml
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request
    
    Closes #3199 from pan3793/travis-2.
    
    Closes #3199
    
    60dd21b3 [Cheng Pan] [BUILD] Fix travis JAVA_HOME
    
    Authored-by: Cheng Pan <ch...@apache.org>
    Signed-off-by: Cheng Pan <ch...@apache.org>
---
 .travis.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 2fc5f69fc..9650554ce 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,8 +27,6 @@ branches:
     - master
 
 language: java
-jdk:
-  - openjdk8
 
 matrix:
   include:
@@ -54,7 +52,10 @@ cache:
     - $HOME/.m2
 
 install:
-  - jdk_switcher use openjdk8
+  - sudo apt update
+  - sudo apt install -y openjdk-8-jdk
+  - export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-${TRAVIS_CPU_ARCH}"
+  - export PATH="$JAVA_HOME/bin:/usr/share/maven/bin:$PATH"
   - ./build/mvn --version
 
 before_script: