gopkg.in/rethinkdb/rethinkdb-go.v6@v6.2.2/wercker.yml (about)

     1  box: google/golang
     2  # Services
     3  services:
     4      - rethinkdb
     5  # Build definition
     6  build:
     7      # The steps that will be executed on build
     8      steps:
     9          - setup-go-workspace
    10          
    11          - script:
    12              name: set rethinkdb_url
    13              code: |
    14                export RETHINKDB_URL=$RETHINKDB_PORT_28015_TCP_ADDR
    15  
    16          # Gets the dependencies
    17          - script:
    18              name: get dependencies
    19              code: |
    20                  go get ./...
    21          # Build the project
    22          - script:
    23              name: build
    24              code: |
    25                  go build ./...
    26          # Test the project
    27          - script:
    28              name: Test
    29              code: |-
    30                  go get -u gopkg.in/check.v1
    31                  go test ./... -short