You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by fr...@apache.org on 2022/10/26 08:18:19 UTC

[calcite-avatica] branch main updated: [CALCITE-5344] Migrate Travis CI configuration to Github Actions

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

francischuang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git


The following commit(s) were added to refs/heads/main by this push:
     new c17f489be [CALCITE-5344] Migrate Travis CI configuration to Github Actions
c17f489be is described below

commit c17f489be096840ba37c72ac8b4cfc5cc5ec0ff0
Author: Francis Chuang <fr...@apache.org>
AuthorDate: Tue Oct 25 13:13:38 2022 +1100

    [CALCITE-5344] Migrate Travis CI configuration to Github Actions
    
    The ASF is discontinuing Travis CI for testing, and it will no longer be
    available after 31 December 2022.
---
 .github/workflows/main.yml | 131 +++++++++++++++++++++++++++++++++++++++++----
 .travis.yml                |  76 --------------------------
 README.md                  |   1 -
 3 files changed, 121 insertions(+), 87 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 7f7b0e52e..36db450e4 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -31,27 +31,45 @@ jobs:
     name: 'Windows (JDK 11)'
     runs-on: windows-latest
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
       with:
         fetch-depth: 50
     - name: 'Set up JDK 11'
-      uses: actions/setup-java@v1
+      uses: actions/setup-java@v2
       with:
         java-version: 11
+        distribution: 'zulu'
     - name: 'Test'
       shell: cmd
       run: |
         ./gradlew --no-parallel --no-daemon build javadoc
 
-  linux-avatica:
+  linux-jdk8:
+    name: 'Linux (JDK 8)'
+    runs-on: ubuntu-latest
+    steps:
+      - name: 'Set up JDK 8'
+        uses: actions/setup-java@v2
+        with:
+          java-version: 8
+          distribution: 'zulu'
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 50
+      - name: 'Test'
+        run: |
+          ./gradlew --no-parallel --no-daemon build javadoc
+
+  linux-jdk8-avatica:
     name: 'Linux (JDK 8), Avatica main'
     runs-on: ubuntu-latest
     steps:
     - name: 'Set up JDK 8'
-      uses: actions/setup-java@v1
+      uses: actions/setup-java@v2
       with:
         java-version: 8
-    - uses: actions/checkout@v2
+        distribution: 'zulu'
+    - uses: actions/checkout@v3
       with:
         fetch-depth: 50
     - name: 'Install Avatica to Maven Local'
@@ -63,32 +81,125 @@ jobs:
         cd ../calcite
         ./gradlew --no-parallel --no-daemon build -Pcalcite.avatica.version=1.0.0-dev-main-SNAPSHOT -PenableMavenLocal
 
-  linux:
+  linux-jdk11-oldest-guava-tz:
+    name: 'Linux (JDK 11), Oldest Guava, Pacific/Chatham Timezone'
+    runs-on: ubuntu-latest
+    env:
+      GUAVA: 14.0.1 # oldest supported Guava version
+      TZ: Pacific/Chatham # flips between +12:45 and +13:45
+    steps:
+      - name: 'Set up JDK 11'
+        uses: actions/setup-java@v2
+        with:
+          java-version: 11
+          distribution: 'zulu'
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 50
+      - name: 'Test'
+        run: |
+          ./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build
+
+  linux-jdk11-minimum-guava-tz:
+    name: 'Linux (JDK 11), Calcite Minimum Guava, America/New_York Timezone'
+    runs-on: ubuntu-latest
+    env:
+      GUAVA: '19.0' # Calcite's minimum Guava version
+      TZ: America/New_York # flips between −05:00 and −04:00
+    steps:
+      - name: 'Set up JDK 11'
+        uses: actions/setup-java@v2
+        with:
+          java-version: 11
+          distribution: 'zulu'
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 50
+      - name: 'Test'
+        run: |
+          ./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build
+
+  linux-jdk11-middle-aged-guava:
+    name: 'Linux (JDK 11), Middle-Aged Guava'
+    runs-on: ubuntu-latest
+    env:
+      GUAVA: '23.0' # a middle-aged Guava version
+    steps:
+      - name: 'Set up JDK 11'
+        uses: actions/setup-java@v2
+        with:
+          java-version: 11
+          distribution: 'zulu'
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 50
+      - name: 'Test'
+        run: |
+          # Disable getLicenses for Guava 22..29 because of [CALCITE-4815]
+          ./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build -x :standalone-server:licenseCopySpec -x :standalone-server:getLicenses -x :standalone-server:license -x :tck:licenseCopySpec -x :tck:getLicenses -x :tck:license
+
+  linux-jdk11-newest-guava:
+    name: 'Linux (JDK 11), Newest Guava'
+    runs-on: ubuntu-latest
+    env:
+      GUAVA: 31.1-jre # newest supported Guava version
+    steps:
+      - name: 'Set up JDK 11'
+        uses: actions/setup-java@v2
+        with:
+          java-version: 11
+          distribution: 'zulu'
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 50
+      - name: 'Test'
+        run: |
+          ./gradlew --no-parallel --no-daemon -Pguava.version=${GUAVA:-14.0.1} build
+
+  linux-jdk17:
     name: 'Linux (JDK 17)'
     runs-on: ubuntu-latest
     steps:
     - name: 'Set up JDK 17'
-      uses: actions/setup-java@v1
+      uses: actions/setup-java@v2
       with:
         java-version: 17
-    - uses: actions/checkout@v2
+        distribution: 'zulu'
+    - uses: actions/checkout@v3
       with:
         fetch-depth: 50
     - name: 'Test'
       run: |
         ./gradlew --no-parallel --no-daemon build javadoc
 
+  linux-jdk18:
+    name: 'Linux (JDK 18)'
+    runs-on: ubuntu-latest
+    steps:
+      - name: 'Set up JDK 18'
+        uses: actions/setup-java@v2
+        with:
+          java-version: 18
+          distribution: 'zulu'
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 50
+      - name: 'Test'
+        run: |
+          ./gradlew --no-parallel --no-daemon build
+
   mac:
     name: 'macOS (JDK 18)'
     runs-on: macos-latest
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
       with:
         fetch-depth: 50
     - name: 'Set up JDK 18'
-      uses: actions/setup-java@v1
+      uses: actions/setup-java@v2
       with:
         java-version: 18
+        distribution: 'zulu'
     - name: 'Test'
       run: |
         ./gradlew --no-parallel --no-daemon build javadoc
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 471b93374..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,76 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to you under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# Configuration file for Travis continuous integration.
-# See https://travis-ci.com/github/apache/calcite-avatica
-language: java
-matrix:
-  fast_finish: true
-  include:
-    - install: true
-      jdk: openjdk8
-      env:
-      script:
-        - ./gradlew $GRADLE_ARGS build javadoc
-    - install: true
-      jdk: openjdk11
-      env:
-        - GUAVA=14.0.1 # oldest supported Guava version
-        - TZ=Pacific/Chatham # flips between +12:45 and +13:45
-      script:
-        - ./gradlew $GRADLE_ARGS -Pguava.version=${GUAVA:-14.0.1} build
-    - install: true
-      jdk: openjdk11
-      env:
-        - GUAVA=19.0 # Calcite's minimum Guava version
-        - TZ=America/New_York # flips between −05:00 and −04:00
-      script:
-        - ./gradlew $GRADLE_ARGS -Pguava.version=${GUAVA:-14.0.1} build
-    - install: true
-      jdk: openjdk11
-      env:
-        - GUAVA=23.0 # a middle-aged Guava version
-      script:
-        # Disable getLicenses for Guava 22..29 because of [CALCITE-4815]
-        - ./gradlew $GRADLE_ARGS -Pguava.version=${GUAVA:-14.0.1} build -x :standalone-server:licenseCopySpec -x :standalone-server:getLicenses -x :standalone-server:license -x :tck:licenseCopySpec -x :tck:getLicenses -x :tck:license
-    - install: true
-      jdk: openjdk11
-      env:
-        - GUAVA=31.1-jre # newest supported Guava version
-      script:
-        - ./gradlew $GRADLE_ARGS -Pguava.version=${GUAVA:-14.0.1} build
-    - install: true
-      jdk: openjdk18
-      env:
-      script:
-        - ./gradlew $GRADLE_ARGS build
-
-branches:
-  only:
-    - main
-    - javadoc
-    - stage
-    - /^branch-.*$/
-    - /^[0-9]+-.*$/
-git:
-  depth: 100
-before_cache:
-  - F=CleanupGradleCache sh -x -c 'curl -O https://raw.githubusercontent.com/vlsi/cleanup-gradle-cache/v1.x/$F.java && javac -J-Xmx128m $F.java && java -Xmx128m $F'
-cache:
-  directories:
-    - $HOME/.gradle/caches/
-    - $HOME/.gradle/wrapper/
diff --git a/README.md b/README.md
index bf86b5d99..7a8143ad9 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,6 @@ See the License for the specific language governing permissions and
 limitations under the License.
 {% endcomment %}
 -->
-[![Build Status](https://travis-ci.org/apache/calcite-avatica.svg?branch=main)](https://travis-ci.org/apache/calcite-avatica)
 [![CI Status](https://github.com/apache/calcite-avatica/workflows/CI/badge.svg)](https://github.com/apache/calcite-avatica/actions)
 
 # Apache Calcite -- Avatica