language: go

go:
  - 1.x
  - 1.7

before_install:
  - sudo add-apt-repository ppa:masterminds/glide -y
  - sudo apt-get update -q
  - sudo apt-get install glide -y
  
install:
  - mkdir -p $GOPATH/bin
  - go get github.com/mattn/goveralls
  - go get github.com/go-playground/overalls
  - make deps

script:
- make test
- $GOPATH/bin/overalls -project=github.com/hellofresh/janus -covermode=count
- $GOPATH/bin/goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN

language: go

go:
  - 1.x
  - 1.7

before_install:
  - sudo add-apt-repository ppa:masterminds/glide -y
  - sudo apt-get update -q
  - sudo apt-get install glide -y
  
install:
  - mkdir -p $GOPATH/bin
  - go get github.com/mattn/goveralls
  - go get github.com/go-playground/overalls
  - make deps

script:
- make test
- $GOPATH/bin/overalls -project=github.com/hellofresh/janus -covermode=count
- if [ "$COVERALLS_TOKEN" != "false" ]; then $GOPATH/bin/goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN; fi

Allow tests to run from a fork
Allow tests to run from a fork