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

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


The following commit(s) were added to refs/heads/master by this push:
     new 1399c0d  [SHIRO-771] Add additional build jobs with various JDKs.
     new 227937f  Merge pull request #227 from bmhm/SHIRO-771-travis-builds
1399c0d is described below

commit 1399c0d8acb191090cfe95899cdfeca0c23aff39
Author: Benjamin Marwell <[email protected]>
AuthorDate: Fri May 8 18:35:11 2020 +0200

    [SHIRO-771] Add additional build jobs with various JDKs.
---
 .travis.yml | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 67 insertions(+), 7 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a9c6753..ad74997 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,17 +17,77 @@
 
 language: java
 
-jdk:
-- openjdk8
-#- openjdk11
-# Running into a problem with junit-servers-jetty with Java 11
+env:
+  global:
+    - JABBA_HOME=$HOME/.jabba
+    # RI binaries are the Oracle reference implementation
+    - [email protected]
+
+cache:
+  directories:
+    - "$HOME/.m2"
+    - "$HOME/.jabba"
+
+jobs:
+  include:
+    # JDK 8 builds (LTS)
+    - os: linux
+      env:
+        - TRAVIS_JDK=$DEFAULT_JDK
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+    # JDK 11 builds (LTS)
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+    # JDK 14 builds (latest)
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+    - os: linux
+      env:
+        - [email protected]
+
+before_cache:
+  - rm -rf "$HOME/.m2/repository/org/apache/shiro"
+
+before_install:
+  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then curl -sL 
https://github.com/shyiko/jabba/raw/master/install.sh | bash && . 
$JABBA_HOME/jabba.sh; fi
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then curl -sL 
https://github.com/shyiko/jabba/raw/master/install.sh | bash && . 
$JABBA_HOME/jabba.sh; fi
 
-# skip the Travis-CI install phase because Maven handles that directly
 install:
-- 'true'
+  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then $JABBA_HOME/bin/jabba install 
$TRAVIS_JDK; jabba use $TRAVIS_JDK; fi
+  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then $JABBA_HOME/bin/jabba install 
$TRAVIS_JDK; jabba use $TRAVIS_JDK; fi
+  - java -version
 
 script:
 - "mvn -e -Pdocs install apache-rat:check -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
 
 after_success:
-- bash <(curl -s https://codecov.io/bash) -f 
test-coverage/target/site/jacoco-aggregate/jacoco.xml
+  # do a coverage analyses for each PR or branch, but only once for each build 
matrix.
+  - |
+    if [ "$TRAVIS_JDK" == "$DEFAULT_JDK" ]; then
+      bash <(curl -s https://codecov.io/bash) -f 
test-coverage/target/site/jacoco-aggregate/jacoco.xml
+    fi

Reply via email to