Switch to travis-ci.

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

Branch: refs/heads/master
Commit: aef9649319ad6c3586604331354b0165355b3326
Parents: 46dd5d3
Author: Francis Chuang <francis.chu...@boostport.com>
Authored: Mon Sep 26 21:37:19 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         | 29 +++++++++++++++++++++++++++
 README.md           |  2 +-
 moby.yml            |  4 ++--
 wercker.yml         | 52 ------------------------------------------------
 6 files changed, 60 insertions(+), 55 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/aef96493/.travis.compose.yml
----------------------------------------------------------------------
diff --git a/.travis.compose.yml b/.travis.compose.yml
new file mode 100644
index 0000000..0065d44
--- /dev/null
+++ b/.travis.compose.yml
@@ -0,0 +1,19 @@
+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/aef96493/.travis.setup.sh
----------------------------------------------------------------------
diff --git a/.travis.setup.sh b/.travis.setup.sh
new file mode 100755
index 0000000..f3b3298
--- /dev/null
+++ b/.travis.setup.sh
@@ -0,0 +1,9 @@
+#!/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/aef96493/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..2bad8f2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,29 @@
+sudo: required
+dist: trusty
+services:
+  - docker
+env:
+  DOCKER_COMPOSE_VERSION: 1.8.1
+  COMPOSE_FILE: .travis.compose.yml
+
+before_install:
+  - echo 'Docker engine version:'
+  - docker --version
+  # 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/aef96493/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 69293e7..2c87421 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)
-[![wercker 
status](https://app.wercker.com/status/1abd1c7014e780ba7754decadb212451/s/master
 "wercker 
status")](https://app.wercker.com/project/bykey/1abd1c7014e780ba7754decadb212451)
+[![Build 
Status](https://travis-ci.org/Boostport/avatica.svg?branch=master)](https://travis-ci.org/Boostport/avatica)
 [![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/aef96493/moby.yml
----------------------------------------------------------------------
diff --git a/moby.yml b/moby.yml
index 55e6440..f3a1b46 100644
--- a/moby.yml
+++ b/moby.yml
@@ -1,11 +1,11 @@
 services:
   - id: phoenix
-    image: boostport/hbase-phoenix-all-in-one:1.2.3-4.8.0
+    image: boostport/hbase-phoenix-all-in-one:1.2.3-4.8.1-rc0
     ports:
       - "8765"
 
 dev:
-  image: golang:alpine
+  image: golang:1.7.1-alpine
   env:
     AVATICA_HOST: http://phoenix:8765
   steps:

http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/aef96493/wercker.yml
----------------------------------------------------------------------
diff --git a/wercker.yml b/wercker.yml
deleted file mode 100644
index a67732e..0000000
--- a/wercker.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-box:
-  id: golang:alpine
-  cmd: /bin/sh
-
-no-response-timeout: 20
-
-services:
-  - boostport/hbase-phoenix-all-in-one:1.2.3-4.8.0
-
-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