general:
  branches:
    ignore:
      - gh-pages

machine:
  services:
    - docker
  environment:
    GOPATH: /home/ubuntu:$GOPATH
    SRCDIR: /home/ubuntu/src/github.com/weaveworks/scope
    PATH: $PATH:$HOME/.local/bin

dependencies:
  post:
    - go get github.com/golang/lint/golint
    - go get github.com/fzipp/gocyclo
    - go get github.com/mattn/goveralls
    - mkdir -p $(dirname $SRCDIR)
    - cp -r $(pwd)/ $SRCDIR

test:
  override:
    - cd $SRCDIR; ./bin/lint .
    - cd $SRCDIR; make
    - cd $SRCDIR; ./bin/test
  post:
    - goveralls -repotoken $COVERALLS_REPO_TOKEN -coverprofile=$SRCDIR/profile.cov -service=circleci || true

general:
  branches:
    ignore:
      - gh-pages

machine:
  services:
    - docker
  environment:
    GOPATH: /home/ubuntu:$GOPATH
    SRCDIR: /home/ubuntu/src/github.com/weaveworks/scope
    PATH: $PATH:$HOME/.local/bin

dependencies:
  post:
    - go get github.com/golang/lint/golint
    - go get github.com/fzipp/gocyclo
    - go get github.com/mattn/goveralls
    - mkdir -p $(dirname $SRCDIR)
    - cp -r $(pwd)/ $SRCDIR

test:
  override:
    - cd $SRCDIR; ./bin/lint .
    - cd $SRCDIR; make
    - cd $SRCDIR; ./bin/test
  post:
    - goveralls -repotoken $COVERALLS_REPO_TOKEN -coverprofile=$SRCDIR/profile.cov -service=circleci || true
    - cd $SRCDIR; cp coverage.html $CIRCLE_ARTIFACTS
    - cd $SRCDIR; cp scope.tar $CIRCLE_ARTIFACTS

Save the coverage.html and scope image after each build.
Save the coverage.html and scope image after each build.
