Simplify coverprofile to get basic case working
This commit is contained in:
parent
54696e75ca
commit
bfb749db4c
2 changed files with 4 additions and 9 deletions
|
@ -1,10 +1,10 @@
|
|||
# SQLBoiler
|
||||
|
||||
[](https://github.com/nullbio/sqlboiler/blob/master/LICENSE.md)
|
||||
[](https://godoc.org/github.com/pobri19/sqlboiler)
|
||||
[](https://circleci.com/gh/nullbio/sqlboiler)
|
||||
[](http://goreportcard.com/report/nullbio/sqlboiler)
|
||||
[](http://coveralls.io/r/nullbio/sqlboiler?branch=master)
|
||||
[](https://github.com/nullbio/sqlboiler/blob/master/LICENSE.md)
|
||||
|
||||
SQLBoiler is a tool to generate a Go ORM tailored to your database schema.
|
||||
|
||||
|
|
11
circle.yml
11
circle.yml
|
@ -2,19 +2,14 @@ test:
|
|||
pre:
|
||||
- go get github.com/jstemmer/go-junit-report
|
||||
- go get github.com/mattn/goveralls
|
||||
- go get golang.org/x/tools/cmd/cover
|
||||
- echo -e "[postgres]\nhost=\"localhost\"\nport=5432\nuser=\"ubuntu\"\ndbname=\"sqlboiler\"" > sqlboiler.toml
|
||||
- createdb -U ubuntu sqlboiler
|
||||
- psql -U ubuntu sqlboiler < ./testdata/test_schema.sql
|
||||
- ./sqlboiler postgres
|
||||
override:
|
||||
- go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
|
||||
- >
|
||||
echo "mode: set" > $CIRCLE_ARTIFACTS/coverage.txt &&
|
||||
for i in $(go list ./...); do
|
||||
rm -f coverage.tmp;
|
||||
go test -v -coverprofile coverage.tmp $i;
|
||||
tail -n +2 coverage.tmp >> $CIRCLE_ARTIFACTS/coverage.txt;
|
||||
done
|
||||
- go test -v -cover -race -coverprofile=/home/ubuntu/coverage.out
|
||||
post:
|
||||
- cat $CIRCLE_ARTIFACTS/gotest.txt | go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
|
||||
- goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.txt -service=circle-ci -repotoken=$COVERALLS_TOKEN
|
||||
- /home/ubuntu/.go_workspace/bin/goveralls -coverprofile=/home/ubuntu/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
|
||||
|
|
Loading…
Add table
Reference in a new issue