You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2020/03/27 07:48:20 UTC

[syncope] branch SYNCOPE-163-1 updated: re-org jdk builds for travis ci

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

mmoayyed pushed a commit to branch SYNCOPE-163-1
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/SYNCOPE-163-1 by this push:
     new 3c82657  re-org jdk builds for travis ci
3c82657 is described below

commit 3c82657f9b1d86dc8666d2b1c41895f6ac3e26a3
Author: Misagh Moayyed <mm...@gmail.com>
AuthorDate: Fri Mar 27 12:18:03 2020 +0430

    re-org jdk builds for travis ci
---
 .travis.yml | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index bef467d..71e5a41 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,8 +16,6 @@
 language: java
 jdk:
   - openjdk11
-  - openjdk13
-  - openjdk14
 cache:
   bundler: false
   cargo: false
@@ -31,6 +29,7 @@ env:
   - JAVAEE_CONTAINER=Tomcat
   - DBMS=H2
   - jaxrsContentType=application/json
+  - TestCommand="mvn -U -T 1C clean test -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Dianal.skip=true -Drat.skip=true -Dcheckstyle.skip=true -Dsass.skip=true"
 install: true
 notifications:
   email:
@@ -48,15 +47,25 @@ jobs:
       #######################################################
     - stage: validate
       name: "Checkstyle, Legal Files, Modernizer and Release Audit Tool (RAT) Analysis"
-      script: mvn -U -T 1C checkstyle:check ianal:verify-legal-files modernizer:modernizer apache-rat:check
+      script: mvn -T 1C checkstyle:check ianal:verify-legal-files modernizer:modernizer apache-rat:check
       ######################################################
     - stage: test
-      name: "Unit Tests"
-      script: mvn -U -T 1C clean test -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Dianal.skip=true -Drat.skip=true -Dcheckstyle.skip=true -Dsass.skip=true
+      name: "Unit Tests via JDK 11"
+      script: eval $TestCommand
+    - stage: test
+      name: "Unit Tests via JDK 13"
+      script: 
+      - jdk_switcher use oraclejdk13
+      - eval $TestCommand
+    - stage: test
+      name: "Unit Tests via JDK 14"
+      script: 
+      - jdk_switcher use oraclejdk14
+      - eval $TestCommand
       ######################################################
     - stage: fit
       name: "Full Integration Tests: Apache Tomcat / H2 / JSON Content-Type"
-      script: mvn -U -f fit/core-reference/pom.xml verify -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Dianal.skip=true -Drat.skip=true -Dcheckstyle.skip=true -Djacoco.skip=true
+      script: mvn -f fit/core-reference/pom.xml verify -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Dianal.skip=true -Drat.skip=true -Dcheckstyle.skip=true -Djacoco.skip=true
       after_failure:
        - cat fit/core-reference/target/log/*
        - cat fit/core-reference/target/failsafe-reports/org.apache.syncope.fit.*-output.txt