Switch back to wercker for CI and upgrade to Phoenix 4.8.1.

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/685e11d3
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/685e11d3
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/685e11d3

Branch: refs/heads/master
Commit: 685e11d35a3226d394b211b380eb53bf05d68988
Parents: 10a9c59
Author: Francis Chuang <francis.chu...@boostport.com>
Authored: Thu Sep 29 09:27:21 2016 +1000
Committer: Julian Hyde <jh...@apache.org>
Committed: Thu Aug 10 18:47:09 2017 -0700

----------------------------------------------------------------------
 .travis.compose.yml | 19 -------------------
 .travis.setup.sh    |  9 ---------
 .travis.yml         | 34 ----------------------------------
 README.md           |  2 +-
 moby.yml            |  2 +-
 wercker.yml         | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 50 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/685e11d3/.travis.compose.yml
----------------------------------------------------------------------
diff --git a/.travis.compose.yml b/.travis.compose.yml
deleted file mode 100644
index 0065d44..0000000
--- a/.travis.compose.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-version: '2'
-
-services:
-  phoenix:
-    image: boostport/hbase-phoenix-all-in-one:1.2.3-4.8.1-rc0
-    ports:
-      - "8765:8765"
-
-  app:
-    image: golang:1.7.1-alpine
-    environment:
-      AVATICA_HOST: http://phoenix:8765
-      COVERALLS_TOKEN:
-      TRAVIS_JOB_ID:
-      TRAVIS_PULL_REQUEST:
-    command: /bin/sh
-    stdin_open: true
-    volumes:
-      - .:/source
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/685e11d3/.travis.setup.sh
----------------------------------------------------------------------
diff --git a/.travis.setup.sh b/.travis.setup.sh
deleted file mode 100755
index f3b3298..0000000
--- a/.travis.setup.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env sh
-
-mkdir -p "$GOPATH/src/github.com/Boostport"
-ln -s /source $GOPATH/src/github.com/Boostport/avatica
-apk update
-apk add git
-go get -u github.com/kardianos/govendor
-go get -u github.com/go-playground/overalls
-go get -u github.com/mattn/goveralls

http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/685e11d3/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index ef453b5..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-sudo: required
-dist: trusty
-services:
-  - docker
-env:
-  DOCKER_COMPOSE_VERSION: 1.8.1
-  COMPOSE_FILE: .travis.compose.yml
-
-before_install:
-  # upgrade docker
-  - sudo apt-get update
-  - sudo apt-get install --only-upgrade docker-engine
-  # show docker version
-  - docker version
-  # show docker info
-  - docker info
-  # upgrade docker-compose
-  - sudo rm /usr/local/bin/docker-compose
-  - curl -L 
https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
 -s`-`uname -m` > docker-compose
-  - chmod +x docker-compose
-  - sudo mv docker-compose /usr/local/bin
-
-before_script:
-  - docker-compose up -d
-  - docker-compose exec app /source/.travis.setup.sh
-  - export PROJECT_PATH='$GOPATH/src/github.com/'$TRAVIS_REPO_SLUG
-  - echo $PROJECT_PATH
-  - docker-compose exec app sh -c "cd $PROJECT_PATH && govendor sync"
-
-script:
-  - echo "Running tests:"
-  - docker-compose exec app sh -c "cd $PROJECT_PATH && go test -cover -v \$(go 
list ./... | grep -v /vendor/)"
-  - docker-compose exec app sh -c "cd $PROJECT_PATH && overalls 
-project="github.com/$TRAVIS_REPO_SLUG" -covermode=set 
-ignore=.git,vendor,message -debug"
-  - docker-compose exec app sh -c "cd $PROJECT_PATH && 
GIT_BRANCH=$TRAVIS_BRANCH goveralls -coverprofile=overalls.coverprofile 
-service=travis-ci"
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/685e11d3/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 2c87421..a5dc885 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Apache Phoenix/Avatica SQL Driver
 
[![GoDoc](https://godoc.org/github.com/Boostport/avatica?status.png)](https://godoc.org/github.com/Boostport/Avatica)
-[![Build 
Status](https://travis-ci.org/Boostport/avatica.svg?branch=master)](https://travis-ci.org/Boostport/avatica)
+[![wercker 
status](https://app.wercker.com/status/1abd1c7014e780ba7754decadb212451/s/master
 "wercker 
status")](https://app.wercker.com/project/byKey/1abd1c7014e780ba7754decadb212451)
 [![Coverage 
Status](https://coveralls.io/repos/github/Boostport/avatica/badge.svg?branch=master)](https://coveralls.io/github/Boostport/avatica?branch=master)
 
 An Apache Phoenix/Avatica driver for Go's 
[database/sql](http://golang.org/pkg/database/sql) package

http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/685e11d3/moby.yml
----------------------------------------------------------------------
diff --git a/moby.yml b/moby.yml
index f3a1b46..962817a 100644
--- a/moby.yml
+++ b/moby.yml
@@ -1,6 +1,6 @@
 services:
   - id: phoenix
-    image: boostport/hbase-phoenix-all-in-one:1.2.3-4.8.1-rc0
+    image: boostport/hbase-phoenix-all-in-one:1.2.3-4.8.1
     ports:
       - "8765"
 

http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/685e11d3/wercker.yml
----------------------------------------------------------------------
diff --git a/wercker.yml b/wercker.yml
new file mode 100644
index 0000000..02dc540
--- /dev/null
+++ b/wercker.yml
@@ -0,0 +1,48 @@
+box:
+  id: golang:1.7.1-alpine
+  cmd: /bin/sh
+
+no-response-timeout: 20
+
+services:
+  - boostport/hbase-phoenix-all-in-one:1.2.3-4.8.1
+
+build:
+  steps:
+
+    - setup-go-workspace
+
+    # Set up enviroment variable
+    - script:
+        name: set up environment variables
+        code: |
+          export 
AVATICA_HOST=http://$HBASE_PHOENIX_ALL_IN_ONE_PORT_8765_TCP_ADDR:8765
+    - script:
+        code: |
+          env
+    # Gets the dependencies
+    - script:
+      name: go vendor
+      code: |
+        apk update
+        apk add git
+        go get -u github.com/kardianos/govendor
+        govendor sync
+    # Build the project
+    - script:
+        name: go build
+        code: |
+          go build ./...
+    # Test the project
+    - script:
+        name: go test
+        code: |
+          go test -cover -v $(go list ./... | grep -v /vendor/)
+    # Invoke goveralls
+    - script:
+        name: goveralls
+        code: |
+          go get -u github.com/go-playground/overalls
+          go get -u github.com/mattn/goveralls
+          overalls 
-project="$WERCKER_GIT_DOMAIN/$WERCKER_GIT_OWNER/$WERCKER_GIT_REPOSITORY" 
-covermode=set -ignore=.git,vendor,message -debug
+          GIT_BRANCH=$WERCKER_GIT_BRANCH goveralls 
-coverprofile=overalls.coverprofile -service=wercker.com -repotoken 
$COVERALLS_TOKEN

Reply via email to