bbgo_origin/.travis.yml

26 lines
386 B
YAML
Raw Permalink Normal View History

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
before_install:
- mysql -e 'CREATE DATABASE bbgo;'
2021-03-14 02:59:03 +00:00
- mysql -e 'CREATE DATABASE bbgo_dev;'
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:51:35 +00:00
- make migrations
2020-10-10 04:10:27 +00:00
script:
- bash scripts/test-sqlite3-migrations.sh
- bash scripts/test-mysql-migrations.sh
2020-12-07 14:51:38 +00:00
- go test -v ./pkg/...