Update travis.yaml to run HSQLDB tests

Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/b9d80926
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/b9d80926
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/b9d80926

Branch: refs/heads/master
Commit: b9d80926cffa64f33b6aa8436f1b316f1de86c29
Parents: 2968def
Author: Francis Chuang <francis.chu...@boostport.com>
Authored: Mon Apr 16 14:26:53 2018 +1000
Committer: Francis Chuang <francis.chu...@boostport.com>
Committed: Mon Apr 16 14:51:38 2018 +1000

----------------------------------------------------------------------
 .travis.yml | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/b9d80926/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index feb6007..842f63f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,21 +33,23 @@ services:
 
 env:
   global:
-  - AVATICA_IMAGE=boostport/hbase-phoenix-all-in-one:1.3-4.13
-  - AVATICA_HOST=http://localhost:8765
+  - PHOENIX_IMAGE=boostport/hbase-phoenix-all-in-one:1.3-4.13
+  - PHOENIX_HOST=http://localhost:8765
+  - HSQLDB_IMAGE=f21global/calcite-avatica:1.11.0-hypersql
+  - HSQLDB_HOST=http://localhost:8766
 
 before_install:
   - go get -u github.com/golang/dep/cmd/dep
   - dep ensure -v
-  - docker pull $AVATICA_IMAGE
-  - docker run -d -p 8765:8765 $AVATICA_IMAGE
+  - docker pull $PHOENIX_IMAGE
+  - docker pull $HSQLDB_IMAGE
+  - docker run -d -p 8765:8765 $PHOENIX_IMAGE
+  - docker run -d -p 8766:8765 $HSQLDB_IMAGE -u jdbc:hsqldb:mem:public
   - docker ps -a
 
-install:
-  - go build
-
 script:
-  - go test -cover -v ./...
+  - export AVATICA_FLAVOR=HSQLDB && go test -v ./...
+  - export AVATICA_FLAVOR=PHOENIX && go test -v ./...
 
 git:
   depth: 10000

Reply via email to