| 1 | dist: bionic |
| 2 | |
| 3 | language: go |
| 4 | |
| 5 | go: |
| 6 | - 1.13.x |
| 7 | |
| 8 | services: |
| 9 | - mysql |
| 10 | |
| 11 | install: |
| 12 | - go get golang.org/x/tools/cmd/cover |
| 13 | - go get github.com/mattn/goveralls |
| 14 | - go get golang.org/x/lint/golint |
| 15 | |
| 16 | before_script: |
| 17 | - mysql -e 'CREATE DATABASE pocketbase_dbx_test;'; |
| 18 | |
| 19 | script: |
| 20 | - test -z "`gofmt -l -d .`" |
| 21 | - go test -v -covermode=count -coverprofile=coverage.out |
| 22 | - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci |