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 2019/09/17 23:28:49 UTC

[calcite-avatica-go] branch github-actions updated (5849619 -> 14ae486)

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

francischuang pushed a change to branch github-actions
in repository https://gitbox.apache.org/repos/asf/calcite-avatica-go.git.


 discard 5849619  Try github actions
     new 14ae486  Try github actions

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (5849619)
            \
             N -- N -- N   refs/heads/github-actions (14ae486)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/tests.yaml | 8 +++-----
 README.md                    | 2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)


[calcite-avatica-go] 01/01: Try github actions

Posted by fr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 14ae4869ab57c521b4588101536b0448b78a1e43
Author: Francis Chuang <fr...@apache.org>
AuthorDate: Wed Aug 14 21:50:06 2019 +1000

    Try github actions
---
 .github/workflows/tests.yaml | 47 ++++++++++++++++++++++++++++
 .travis.yml                  | 73 --------------------------------------------
 README.md                    |  2 +-
 3 files changed, 48 insertions(+), 74 deletions(-)

diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
new file mode 100644
index 0000000..016be59
--- /dev/null
+++ b/.github/workflows/tests.yaml
@@ -0,0 +1,47 @@
+on: [push, pull_request]
+name: Tests
+jobs:
+  test:
+    strategy:
+      fail-fast: false
+      matrix:
+        go_version: [1.12, 1.13]
+        database_image:
+          - boostport/hbase-phoenix-all-in-one:1.3-4.13
+          - boostport/hbase-phoenix-all-in-one:1.4-4.14
+          - boostport/hbase-phoenix-all-in-one:2.0-5.0
+          - f21global/calcite-avatica:1.11.0-hypersql
+          - f21global/calcite-avatica:1.12.0-hypersql
+          - apache/calcite-avatica-hypersql:1.13.0
+          - apache/calcite-avatica-hypersql:1.14.0
+          - apache/calcite-avatica-hypersql:1.15.0
+
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Set up go
+        uses: actions/setup-go@v1
+        with:
+          go-version: ${{ matrix.go_version}}
+
+      - name: Check out Avatica-Go repository
+        uses: actions/checkout@v1
+
+      - name: Run tests
+        env:
+          PHOENIX_HOST: http://localhost:8765
+          HSQLDB_HOST: http://localhost:8765
+          DATABASE_IMAGE: ${{ matrix.database_image }}
+        run: |
+          case "$DATABASE_IMAGE" in
+            *phoenix*)
+              docker run -d -p 8765:8765 $DATABASE_IMAGE
+              export AVATICA_FLAVOR=PHOENIX
+              ;;
+            *hypersql*)
+              docker run -d -p 8765:8765 $DATABASE_IMAGE -u jdbc:hsqldb:mem:public
+              export AVATICA_FLAVOR=HSQLDB
+              ;;
+          esac
+
+          go test -v ./...
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 34fcf86..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,73 +0,0 @@
-# Configuration file for Travis continuous integration.
-# See https://travis-ci.org/apache/calcite-avatica-go
-#
-# 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.
-#
-language: go
-
-branches:
-  only:
-    - master
-    - /^branch-.*$/
-    - /^[0-9]+-.*$/
-
-go:
-  - "1.12.x"
-  - "1.11.x"
-
-sudo: required
-
-services:
-  - docker
-
-env:
-  global:
-    - PHOENIX_HOST=http://localhost:8765
-    - HSQLDB_HOST=http://localhost:8765
-  matrix:
-    - AVATICA_FLAVOR=PHOENIX IMAGE=boostport/hbase-phoenix-all-in-one:1.3-4.13 GO111MODULE=on
-    - AVATICA_FLAVOR=PHOENIX IMAGE=boostport/hbase-phoenix-all-in-one:1.4-4.14 GO111MODULE=on
-    - AVATICA_FLAVOR=PHOENIX IMAGE=boostport/hbase-phoenix-all-in-one:2.0-5.0 GO111MODULE=on
-    - AVATICA_FLAVOR=PHOENIX IMAGE=boostport/hbase-phoenix-all-in-one:2.0-5.0 GO111MODULE=off
-    - AVATICA_FLAVOR=HSQLDB IMAGE=f21global/calcite-avatica:1.11.0-hypersql GO111MODULE=on
-    - AVATICA_FLAVOR=HSQLDB IMAGE=f21global/calcite-avatica:1.12.0-hypersql GO111MODULE=on
-    - AVATICA_FLAVOR=HSQLDB IMAGE=apache/calcite-avatica-hypersql:1.13.0 GO111MODULE=on
-    - AVATICA_FLAVOR=HSQLDB IMAGE=apache/calcite-avatica-hypersql:1.14.0 GO111MODULE=on
-    - AVATICA_FLAVOR=HSQLDB IMAGE=apache/calcite-avatica-hypersql:1.15.0 GO111MODULE=on
-    - AVATICA_FLAVOR=HSQLDB IMAGE=apache/calcite-avatica-hypersql:1.15.0 GO111MODULE=off
-
-before_install:
-  - if [ $GO111MODULE == "off" ]; then
-      go get -u github.com/golang/dep/cmd/dep;
-      dep ensure -v;
-    fi
-  - if [ $AVATICA_FLAVOR == "PHOENIX" ]; then
-      docker pull $IMAGE;
-      docker run -d -p 8765:8765 $IMAGE;
-    elif [ $AVATICA_FLAVOR == "HSQLDB" ]; then
-      docker pull $IMAGE;
-      docker run -d -p 8765:8765 $IMAGE -u jdbc:hsqldb:mem:public;
-    fi
-  - docker ps -a
-
-script:
-  - go test -v ./...
-
-git:
-  depth: 10000
-
-install: true
-# End .travis.yml
diff --git a/README.md b/README.md
index b6be82e..f5de60d 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ limitations under the License.
 # Apache Avatica/Phoenix SQL Driver
 
 [![GoDoc](https://godoc.org/github.com/apache/calcite-avatica-go?status.png)](https://godoc.org/github.com/apache/calcite-avatica-go)
-[![Build Status](https://travis-ci.org/apache/calcite-avatica-go.svg?branch=master)](https://travis-ci.org/apache/calcite-avatica-go)
+[![Build Status](https://github.com/apache/calcite-avatica-go/workflows/Tests/badge.svg)](https://github.com/apache/calcite-avatica-go)
 
 Apache Calcite's Avatica Go is a Go [database/sql](https://golang.org/pkg/database/sql/) driver for the Avatica server.