2020-10-10 04:10:27 +00:00
|
|
|
---
|
|
|
|
language: go
|
2020-10-10 04:27:28 +00:00
|
|
|
go:
|
|
|
|
- 1.14
|
|
|
|
- 1.15
|
2021-02-06 01:16:04 +00:00
|
|
|
|
2020-12-07 14:51:38 +00:00
|
|
|
services:
|
|
|
|
- redis-server
|
2021-02-06 01:16:04 +00:00
|
|
|
- mysql
|
2021-02-05 06:44:29 +00:00
|
|
|
|
2021-02-06 01:16:56 +00:00
|
|
|
before_install:
|
|
|
|
- mysql -e 'CREATE DATABASE bbgo;'
|
|
|
|
|
2021-02-05 06:44:29 +00:00
|
|
|
install:
|
|
|
|
- go get github.com/c9s/rockhopper/cmd/rockhopper
|
|
|
|
|
2020-10-10 04:10:27 +00:00
|
|
|
before_script:
|
2020-12-07 14:51:38 +00:00
|
|
|
- go mod download
|
2021-02-06 01:16:56 +00:00
|
|
|
|
2020-10-10 04:10:27 +00:00
|
|
|
script:
|
2021-02-05 06:20:07 +00:00
|
|
|
- bash scripts/test-sqlite3-migrations.sh
|
2020-12-07 14:51:38 +00:00
|
|
|
- go test -v ./pkg/...
|