代码拉取完成,页面将自动刷新
同步操作将从 go-admin/go-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
---
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。