Working in shippable config.

This commit is contained in:
Matthew Dillon 2015-01-28 10:29:40 -09:00
parent ef2209c066
commit f57acc57fe
3 changed files with 28 additions and 10 deletions

View file

@ -1,10 +0,0 @@
language: go
addons:
postgresql: 9.3
go: 1.4
before_script:
- psql -c 'CREATE DATABASE bactdbtest;' -U postgres

View file

@ -100,6 +100,8 @@ func setDBCredentials() string {
conn, _ := pq.ParseURL(url)
connection += conn
connection += " sslmode=require"
} else {
connection += " sslmode=disable"
}
return connection
}

26
shippable.yml Normal file
View file

@ -0,0 +1,26 @@
language: go
addons:
postgresql: 9.3
go: 1.4
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 github.com/onsi/gomega
- go get github.com/onsi/ginkgo
- go get code.google.com/p/go.tools/cmd/cover
before_script:
- psql -c 'CREATE DATABASE bactdbtest;' -U postgres
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
script:
- go test -coverprofile=coverage.txt -covermode count ./
- $GOPATH/bin/gocover-cobertura < coverage.txt > shippable/codecoverage/coverage.xml