You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by rm...@apache.org on 2021/09/27 18:45:43 UTC

[ranger] branch master updated: RANGER-3245:Use OpenJDK in TravisCI config instead of OracleJDK

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7b55dfd  RANGER-3245:Use OpenJDK in TravisCI config instead of OracleJDK
7b55dfd is described below

commit 7b55dfd36a912e82f3c6a2eae651362affed59d8
Author: Martin Grigorov <mg...@apache.org>
AuthorDate: Mon Sep 27 11:37:03 2021 -0700

    RANGER-3245:Use OpenJDK in TravisCI config instead of OracleJDK
---
 .travis.yml            | 44 ++++++++++++++++++++++++++++++--------------
 security-admin/pom.xml |  9 +--------
 unixauthpam/pom.xml    |  1 +
 3 files changed, 32 insertions(+), 22 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index deac951..711794b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,31 +15,47 @@
 
 
 sudo: false
-language: java
+dist: bionic
+language: generic
+
 cache:
   directories:
-  - $HOME/.m2
-jdk:
-  - oraclejdk8
-  - oraclejdk11
-  - openjdk10
-  - openjdk11
+    - $HOME/.m2
 
 env:
-  - KEY=default VALUE=default
+  global:
+    - KEY=default VALUE=default
+
 # Environment to testing with different versions, disabled because ranger is not compatible
 #  - KEY=hadoop.version VALUE=2.8.0
 
+jobs:
+  include:
+    - name: Linux AMD64 OpenJDK8
+      env: JDK_VERSION=8
+    - name: Linux AMD64 OpenJDK11
+      env: JDK_VERSION=11
+    - name: Linux ARM64 OpenJDK11
+      arch: arm64-graviton2
+      dist: focal
+      virt: lxd
+      group: edge
+      env:
+        - JDK_VERSION=11
+        - MAVEN_ARGS="-DskipJSTests=true -P!all"
+
 before_install:
   - export MAVEN_OPTS="-Xmx1200M -XX:MaxPermSize=768m -Xms512m"
+  - sudo apt update -y
+  - sudo apt install openjdk-${JDK_VERSION}-jdk maven
 
 install:
-  - mvn package -D$KEY=$VALUE -DskipTests -Dmaven.javadoc.skip=true -B -V
+  - mvn install $MAVEN_ARGS -D$KEY=$VALUE -DskipTests -Dmaven.javadoc.skip=true --no-transfer-progress -B -V
 
 # KafkaRangerAuthorizerGSSTest is a failing test, TestLdapUserGroup needs too much memory for travis
 script:
-  - mvn test -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl !plugin-kafka,!ugsync,!hive-agent
-  - mvn test -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl plugin-kafka -Dtest="*,!KafkaRangerAuthorizerGSSTest"
-  - mvn test -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl ugsync -Dtest="*,!TestLdapUserGroup"
-  - if [[ "$TRAVIS_JDK_VERSION" != "oraclejdk8" ]]; then mvn test -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl hive-agent -Dtest="*,!HIVERangerAuthorizerTest" -DfailIfNoTests=false ; fi
-  - if [[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]]; then mvn test -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl hive-agent ; fi
+  - mvn test $MAVEN_ARGS -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl !plugin-kafka,!ugsync,!hive-agent
+  - mvn test $MAVEN_ARGS -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl plugin-kafka -Dtest="*,!KafkaRangerAuthorizerGSSTest"
+  - mvn test $MAVEN_ARGS -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl ugsync -Dtest="*,!TestLdapUserGroup"
+  - if [[ "$JDK_VERSION" != "8" ]]; then mvn test $MAVEN_ARGS -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl hive-agent -Dtest="*,!HIVERangerAuthorizerTest" -DfailIfNoTests=false ; fi
+  - if [[ "$JDK_VERSION" == "8" ]]; then mvn test $MAVEN_ARGS -D$KEY=$VALUE -Dmaven.javadoc.skip=true -B -V -pl hive-agent ; fi
diff --git a/security-admin/pom.xml b/security-admin/pom.xml
index eac0120..8b767f6 100644
--- a/security-admin/pom.xml
+++ b/security-admin/pom.xml
@@ -916,15 +916,8 @@
                             <fail>true</fail>
                         </configuration>
                     </execution>
-                </executions>
-            </plugin>
 
-            <!-- duplicate JAVA patch file version validator plugin -->
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-enforcer-plugin</artifactId>
-                <version>1.4.1</version>
-                <executions>
+                    <!-- duplicate JAVA patch file version validator plugin -->
                     <execution>
                         <id>duplicate-java-patch-file-version-validator</id>
                         <goals>
diff --git a/unixauthpam/pom.xml b/unixauthpam/pom.xml
index 4d5b05e..f8bf697 100644
--- a/unixauthpam/pom.xml
+++ b/unixauthpam/pom.xml
@@ -32,6 +32,7 @@
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>native-maven-plugin</artifactId>
+                <version>1.0-alpha-11</version>
                 <extensions>true</extensions>
                 <configuration>
                     <compilerStartOptions>