language: go

go:
  - 1.7
  - tip

addons:
  postgresql: "9.4"

before_install:
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
  - gem install package_cloud

before_script:
  - psql -c 'create database henhouse_test;' -U postgres

script:
  - go list ./... | while read pkg; do go test -v -covermode=count -coverprofile=$(basename ${pkg}).cover ${pkg} || return 1; done
  - ls | grep cover$ | xargs cat | sort -r | uniq >> coverage.out
  - goveralls -coverprofile=coverage.out -service travis-ci
  - cd ${HOME}/jollheef/henhouse && ./package.sh

language: go

go:
  - 1.7
  - tip

addons:
  postgresql: "9.4"

before_install:
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
  - gem install package_cloud

before_script:
  - psql -c 'create database henhouse_test;' -U postgres

script:
  - go list ./... | while read pkg; do go test -v -covermode=count -coverprofile=$(basename ${pkg}).cover ${pkg} || return 1; done
  - ls | grep cover$ | xargs cat | sort -r | uniq >> coverage.out
  - goveralls -coverprofile=coverage.out -service travis-ci
  - cd ${TRAVIS_BUILD_DIR} && ./package.sh

Change directory for build package
Change directory for build package [2]
