1 Star 0 Fork 0

missyoyo/go-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.drone.yml 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
honkui 提交于 2022-02-09 12:35 . fix(tests): update drone ci
---
kind: pipeline
type: docker
name: api_mysql
trigger:
event:
- pull_request
clone:
disable: true
services:
- name: db_mysql
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: go-admin-test
steps:
- name: api
image: chg80333/goadmin-test:v8
environment:
GO111MODULE: on
GOPROXY: https://goproxy.cn
commands:
- cd /go/src/github.com/GoAdminGroup/go-admin
- git pull
- git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST
- git checkout pr$DRONE_PULL_REQUEST
- sleep 80
- make mysql-test
---
kind: pipeline
type: docker
name: api_mssql
trigger:
event:
- pull_request
clone:
disable: true
volumes:
- name: data
temp: {}
services:
- name: db_mssql
image: mcr.microsoft.com/mssql/server:2017-latest
volumes:
- name: data
path: /home/data
environment:
ACCEPT_EULA: Y
SA_PASSWORD: Aa123456
steps:
- name: api
image: chg80333/goadmin-test:v8
volumes:
- name: data
path: /go/src/github.com/GoAdminGroup/go-admin/tests/data
environment:
GO111MODULE: on
GOPROXY: https://goproxy.cn
commands:
- cd /go/src/github.com/GoAdminGroup/go-admin
- git pull
- git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST
- git checkout pr$DRONE_PULL_REQUEST
- sleep 80
- make ms-test
---
kind: pipeline
type: docker
name: api_postgres
trigger:
event:
- pull_request
clone:
disable: true
services:
- name: db_pgsql
image: postgres:10
environment:
POSTGRES_USER: postgres
POSTGRES_DB: go-admin-test
POSTGRES_PASSWORD: root
steps:
- name: api
image: chg80333/goadmin-test:v8
environment:
GO111MODULE: on
GOPROXY: https://goproxy.cn
commands:
- cd /go/src/github.com/GoAdminGroup/go-admin
- git pull
- git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST
- git checkout pr$DRONE_PULL_REQUEST
- sleep 80
- make pg-test
---
kind: pipeline
type: docker
name: api_sqlite
trigger:
event:
- pull_request
clone:
disable: true
steps:
- name: api
image: chg80333/goadmin-test:v8
environment:
GO111MODULE: on
GOPROXY: https://goproxy.cn
commands:
- cd /go/src/github.com/GoAdminGroup/go-admin
- git pull
- git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST
- git checkout pr$DRONE_PULL_REQUEST
- sleep 80
- make sqlite-test
---
kind: pipeline
type: docker
name: frontend
trigger:
event:
- pull_request
clone:
disable: true
services:
- name: db_mysql
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: go-admin-test
steps:
- name: chrome
image: chg80333/goadmin-test:v8
environment:
GO111MODULE: on
GOPROXY: https://goproxy.cn
commands:
- cd /go/src/github.com/GoAdminGroup/go-admin
- git pull
- git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST
- git checkout pr$DRONE_PULL_REQUEST
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- sleep 8
- make web-test
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/missyoyo/go-admin.git
git@gitee.com:missyoyo/go-admin.git
missyoyo
go-admin
go-admin
master

搜索帮助