1 Star 0 Fork 397

新港技术团队 / go-admin

forked from go-admin / go-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
honkui 提交于 2020-08-02 21:02 . docs(docs): add code comment
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/83.0.4103.39/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 --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/gf@v1.12.1
- sudo chmod -R 777 $GOPATH/pkg/mod/github.com/gogf/gf@v1.12.1/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/gf@v1.12.1/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
Go
1
https://gitee.com/hepu_return_pearl_team/go-admin.git
git@gitee.com:hepu_return_pearl_team/go-admin.git
hepu_return_pearl_team
go-admin
go-admin
master

搜索帮助