代码拉取完成,页面将自动刷新
同步操作将从 go-admin/go-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
language: go
sudo: true
go:
- 1.13.x
env:
- GO111MODULE=on PGPASSWORD=root GOPROXY=https://goproxy.cn,https://goproxy.io,direct
addons:
chrome: stable
apt:
packages:
- chromium-chromedriver
services:
- mysql
- postgresql
- docker
before_install:
- mysql -e 'create database `go-admin-test`;'
- createdb -U postgres go-admin-test
install:
- wget -N https://chromedriver.storage.googleapis.com/85.0.4183.87/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo chmod +x /home/travis/chromedriver
- ln --symbolic /home/travis/chromedriver "${HOME}/bin/chromedriver"
- chromedriver --version
before_script:
- google-chrome-stable --version
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- echo "USE mysql;\nUPDATE user SET authentication_string=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
- psql -c "ALTER USER postgres WITH PASSWORD 'root';" -U postgres
- go get -u github.com/rakyll/gotest
- go get -u -v github.com/gogf/[email protected]
- sudo chmod -R 777 $GOPATH/pkg/mod/github.com/gogf/[email protected]/net/ghttp/ghttp_server_handler.go
- sudo echo -e "\nfunc (s *Server) DefaultHttpHandle(w http.ResponseWriter, r *http.Request) { \n s.handleRequest(w, r) \n}\n" >> $GOPATH/pkg/mod/github.com/gogf/[email protected]/net/ghttp/ghttp_server_handler.go
- docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Aa123456" -v /home/travis/gopath/src/github.com/GoAdminGroup/go-admin/tests/data:/home/data -p 1433:1433 --name mssql -d mcr.microsoft.com/mssql/server:2017-latest
- cd /home/travis/gopath/src/github.com/GoAdminGroup/go-admin && go get github.com/GoAdminGroup/themes@master
script:
- cd /home/travis/gopath/src/github.com/GoAdminGroup/go-admin && make test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。