blob: 94198f44c7dc1c9cb060de576d426ba98da11b7e [file] [log] [blame]
# 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.11.x"
- "1.10.x"
sudo: required
services:
- docker
env:
global:
- PHOENIX_HOST=http://localhost:8765
- HSQLDB_HOST=http://localhost:8765
- GO111MODULE=on
matrix:
- AVATICA_FLAVOR=PHOENIX IMAGE=boostport/hbase-phoenix-all-in-one:1.3-4.13
- AVATICA_FLAVOR=PHOENIX IMAGE=boostport/hbase-phoenix-all-in-one:1.4-4.14
- AVATICA_FLAVOR=PHOENIX IMAGE=boostport/hbase-phoenix-all-in-one:2.0-5.0
- AVATICA_FLAVOR=HSQLDB IMAGE=f21global/calcite-avatica:1.11.0-hypersql
- AVATICA_FLAVOR=HSQLDB IMAGE=f21global/calcite-avatica:1.12.0-hypersql
before_install:
- if [ $TRAVIS_GO_VERSION == "1.10.x" ]; 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