sqlboiler/circle.yml

27 lines
1,001 B
YAML
Raw Normal View History

2016-08-15 12:02:47 +02:00
test:
2016-08-05 07:20:31 +02:00
pre:
2016-08-16 09:34:57 +02:00
- mkdir -p /home/ubuntu/.go_workspace/src/github.com/jstemmer
2016-08-16 09:56:45 +02:00
- git clone git@github.com:nullbio/go-junit-report.git /home/ubuntu/.go_workspace/src/github.com/jstemmer/go-junit-report
2016-08-16 09:27:15 +02:00
- go install github.com/jstemmer/go-junit-report
2016-08-05 07:20:31 +02:00
- 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
2016-08-15 12:02:47 +02:00
machine:
environment:
2016-08-16 05:22:50 +02:00
GODIST: "go1.7.linux-amd64.tar.gz"
2016-08-15 12:02:47 +02:00
post:
- 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-15 11:58:32 +02:00
dependencies:
cache_directories:
- ~/download