Working in shippable config.
This commit is contained in:
parent
ef2209c066
commit
f57acc57fe
3 changed files with 28 additions and 10 deletions
10
.travis.yml
10
.travis.yml
|
@ -1,10 +0,0 @@
|
||||||
language: go
|
|
||||||
|
|
||||||
addons:
|
|
||||||
postgresql: 9.3
|
|
||||||
|
|
||||||
go: 1.4
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- psql -c 'CREATE DATABASE bactdbtest;' -U postgres
|
|
||||||
|
|
|
@ -100,6 +100,8 @@ func setDBCredentials() string {
|
||||||
conn, _ := pq.ParseURL(url)
|
conn, _ := pq.ParseURL(url)
|
||||||
connection += conn
|
connection += conn
|
||||||
connection += " sslmode=require"
|
connection += " sslmode=require"
|
||||||
|
} else {
|
||||||
|
connection += " sslmode=disable"
|
||||||
}
|
}
|
||||||
return connection
|
return connection
|
||||||
}
|
}
|
||||||
|
|
26
shippable.yml
Normal file
26
shippable.yml
Normal 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
|
||||||
|
|
Reference in a new issue