2 Star 9 Fork 5

小老虎/go-mysql-postgres

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1022 Bytes
一键复制 编辑 原始数据 按行查看 历史
小老虎 提交于 2021-03-08 21:53 +08:00 . master 第一次提交
language: go
go:
- "1.11"
services:
- elasticsearch
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade
# stop mysql and use row-based format binlog
- "sudo service mysql stop || true"
- "echo '[mysqld]' | sudo tee /etc/mysql/conf.d/replication.cnf"
- "echo 'server-id=1' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
- "echo 'log-bin=mysql-bin' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
- "echo 'binlog-format = row' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
# Start mysql (avoid errors to have logs)
- "sudo service mysql start || true"
- "sudo tail -1000 /var/log/syslog"
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot
script:
- go test --race ./...
env:
- GO111MODULE=on
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tangjunhu/go-mysql-postgres.git
git@gitee.com:tangjunhu/go-mysql-postgres.git
tangjunhu
go-mysql-postgres
go-mysql-postgres
master

搜索帮助