box: wercker/golang

build:
  steps:
    - setup-go-workspace
    
    - script:
        name: get dependencies
        code: |
          go get -d -t ./...

    - script:
        name: build
        code: |
            go build -x ./...

    - script:
        name: test
        code: |
          go test -cover ./...

    - script:
        name: vet
        code: |
          go vet ./...
        
    - script:
        name: lint
        code: |
          go get github.com/golang/lint/golint
          golint .
