---
args:
  fast:
    usage: Skip slow linters/tests
    type: bool

tasks:
  bootstrap:
    usage: Set up the app for first time use
    script:
      - run:
          - go get -u gopkg.in/alecthomas/gometalinter.v1
          - go get -u github.com/golang/dep/cmd/dep
          - dep ensure

  lint:
    usage: Run the linter
    script:
      - when:
          test:
            - ${fast} = false
        run:
            - gometalinter.v1 --vendor ./...
      - when:
          test:
            - ${fast} = true
        run:
          - gometalinter.v1 --vendor --fast ./...

  test:
    usage: Run the linter and tests
    args:
      lint:
        usage: Run the linter with the tests
        default: true
        type: bool
    pre:
      - name: lint
        when:
          test:
            - ${lint} = true
    script:
      - run:
          - go test $(go list ./... | grep -v '/tusk/vendor/')

---
args:
  fast:
    usage: Skip slow linters/tests
    type: bool

tasks:
  bootstrap:
    usage: Set up the app for first time use
    script:
      - run:
          - go get -u gopkg.in/alecthomas/gometalinter.v1
          - go get -u github.com/golang/dep/cmd/dep
          - dep ensure

  lint:
    usage: Run the linter
    script:
      - when:
          test:
            - ${fast} = false
        run:
            - gometalinter.v1 --vendor ./...
      - when:
          test:
            - ${fast} = true
        run:
          - gometalinter.v1 --vendor --fast ./...

  test:
    usage: Run the linter and tests
    args:
      lint:
        usage: Run the linter with the tests
        default: true
        type: bool
    pre:
      - name: lint
        when:
          test:
            - ${lint} = true
    script:
      - run:
          - go test $(go list ./... | grep -v '/vendor/')

Remove unnecessary repo name reference
Remove unnecessary repo name reference
