box: amarburg/golang-ffmpeg:wheezy-1.8

build:
  steps:
    - wercker/setup-go-workspace
        #package-dir: github.com/amarburg/go-lazycache

    # Gets the dependencies
    - script:
        name: go get
        code: |
          go get -u github.com/mailru/easyjson/...
          go get -t -tags integration github.com/amarburg/go-lazycache


    #- wercker/golint

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

    # Test the project
    - script:
        name: Run integration tests
        code: |
          go test -tags integration

    # TODO.  Figure out how to set up a local Redis service and test against that

trigger-build-of-lazycache-app:
  ## Triggers the lazycache-deploy/build pipeline
  steps:
    - amarburg/trigger-build:
      token: $WERCKER_BEARER_TOKEN
      pipeline-id: 589df0685b629501000732cd
      message: Build triggered by go-lazycache-app commit $WERCKER_GIT_COMMIT

box: amarburg/golang-ffmpeg:wheezy-1.8

build:
  steps:
    - wercker/setup-go-workspace
        #package-dir: github.com/amarburg/go-lazycache

    # Gets the dependencies
    - script:
        name: go get
        code: |
          go get -u -v github.com/mailru/easyjson/...
          go get -d -v -t -tags integration github.com/amarburg/go-lazycache


    #- wercker/golint

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

    # Test the project
    - script:
        name: Run integration tests
        code: |
          go test -tags integration

    # TODO.  Figure out how to set up a local Redis service and test against that

trigger-build-of-lazycache-app:
  ## Triggers the lazycache-deploy/build pipeline
  steps:
    - amarburg/trigger-build:
      token: $WERCKER_BEARER_TOKEN
      pipeline-id: 589df0685b629501000732cd
      message: Build triggered by go-lazycache-app commit $WERCKER_GIT_COMMIT

Add -d to go get go-lazycache so it isn't build immediately.
Add -d to go get go-lazycache so it isn't build immediately.
