box: wercker/golang
services:
  - mies/rethinkdb
build:
  steps:
    - setup-go-workspace

    - script:
        name: go get
        code: |
          cd $WERCKER_SOURCE_DIR
          go version
          go get ./...
          go get code.google.com/p/go-uuid/uuid
          go get github.com/stretchr/testify
          go get github.com/dancannon/gorethink

    # Build the project
    - script:
        name: go build
        code: |
          go build ./...

    # Test the project
    - script:
        name: go test
        code: |
          go test ./...

    - script:
        name: go coverage
        code: |
          go get github.com/mattn/goveralls
          go test -coverprofile=out.cover
          goveralls -coverprofile=out.cover -service=wercker.com -repotoken $COVERALLS_TOKEN

box: wercker/golang
services:
  - mies/rethinkdb
build:
  steps:
    - setup-go-workspace

    - script:
        name: go get
        code: |
          cd $WERCKER_SOURCE_DIR
          go version
          go get ./...
          go get code.google.com/p/go-uuid/uuid
          go get github.com/stretchr/testify
          go get github.com/dancannon/gorethink

    # Build the project
    - script:
        name: go build
        code: |
          go build ./...

    # Test the project
    - script:
        name: go test
        code: |
          go test -v ./...

    - script:
        name: go coverage
        code: |
          go get github.com/mattn/goveralls
          go test -coverprofile=out.cover
          goveralls -coverprofile=out.cover -service=wercker.com -repotoken $COVERALLS_TOKEN

Add -v flag to go test to make debugging more helpful
Add -v flag to go test to make debugging more helpful
