1 Star 0 Fork 0

nwsuafzq/goInception

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
circle.yml 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12
- image: circleci/mysql:5.7
command: mysqld --lower_case_table_names=1 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --innodb-large-prefix=true --log-bin=on --server_id=111
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
working_directory: /go/src/github.com/hanchuanchuan/goInception
filters:
branches:
ignore: gh-pages
steps:
- run:
name: Install mysql-client
command: sudo apt install mysql-client
- checkout
- run:
name: Waiting for MySQL to be ready
command: |
for i in `seq 1 10`;
do
nc -z localhost 3306 && echo Success && exit 0
echo -n .
sleep 1
done
echo Failed waiting for MySQL && exit 1
- run:
name: mysql init
command: mysql -h 127.0.0.1 -u root -e "select version();create database if not exists test DEFAULT CHARACTER SET utf8;create database if not exists test_inc DEFAULT CHARACTER SET utf8;grant all on *.* to test@'127.0.0.1' identified by 'test';FLUSH PRIVILEGES;show databases;show variables like 'explicit_defaults_for_timestamp';"
- run: rm -f go.sum
- run: sudo chmod +x cmd/explaintest/run-tests.sh
- run:
name: "Build & Test"
command: make dev
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/unixcoder/goInception.git
git@gitee.com:unixcoder/goInception.git
unixcoder
goInception
goInception
master

搜索帮助