sqlboiler/circle.yml

22 lines
793 B
YAML
Raw Normal View History

2016-08-15 11:58:32 +02:00
machine:
environment:
GODIST: "go1.7rc3.linux-amd64.tar.gz"
2016-08-05 07:20:31 +02:00
pre:
2016-08-15 11:58:32 +02:00
- mkdir -p download
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST
2016-08-05 07:20:31 +02:00
- go get github.com/jstemmer/go-junit-report
- 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:
2016-08-08 09:03:21 +02:00
- go test -v -race ./... > $CIRCLE_ARTIFACTS/gotest.txt
post:
- cat $CIRCLE_ARTIFACTS/gotest.txt | go-junit-report > $CIRCLE_TEST_REPORTS/junit.xml
2016-08-15 11:58:32 +02:00
dependencies:
cache_directories:
- ~/download