This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
bactdb/shippable.yml
2015-01-28 11:41:25 -09:00

30 lines
778 B
YAML

language: go
addons:
postgresql: 9.3
go: 1.4
env:
- CI_REPORT=shippable/testresults/junit.xml
before_install:
- export GOPATH=$SHIPPABLE_GOPATH
- source $HOME/.gvm/scripts/gvm
- gvm install go$SHIPPABLE_GO_VERSION
- gvm use go$SHIPPABLE_GO_VERSION
- go get github.com/t-yuki/gocover-cobertura
- go get golang.org/x/tools/cmd/cover
- go get -u github.com/jstemmer/go-junit-report
before_script:
- psql -c 'CREATE DATABASE bactdbtest;' -U postgres
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
script:
- ./test.sh | $GOPATH/bin/go-junit-report > shippable/testresults/junit.xml
- $GOPATH/bin/gocover-cobertura < coverage.txt > shippable/codecoverage/coverage.xml
after_success:
- git push git@heroku.com:bactdb.git master