2018-05-11 07:00:10 +08:00
|
|
|
language: go
|
|
|
|
go:
|
2020-05-15 01:09:55 +08:00
|
|
|
- 1.3
|
|
|
|
- 1.4
|
2018-05-11 07:00:10 +08:00
|
|
|
- tip
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- postgres
|
|
|
|
- sqlite3
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- mysql -e "CREATE DATABASE gorptest;"
|
|
|
|
- mysql -u root -e "GRANT ALL ON gorptest.* TO gorptest@localhost IDENTIFIED BY 'gorptest'"
|
|
|
|
- psql -c "CREATE DATABASE gorptest;" -U postgres
|
|
|
|
- psql -c "CREATE USER "gorptest" WITH SUPERUSER PASSWORD 'gorptest';" -U postgres
|
|
|
|
- go get github.com/lib/pq
|
|
|
|
- go get github.com/mattn/go-sqlite3
|
|
|
|
- go get github.com/ziutek/mymysql/godrv
|
|
|
|
- go get github.com/go-sql-driver/mysql
|
|
|
|
|
|
|
|
script: ./test_all.sh
|