代码拉取完成,页面将自动刷新
language: go
go:
- "1.13"
services:
- mysql
- postgresql
env:
- GO111MODULE=on
before_install:
- mysql -e "CREATE DATABASE IF NOT EXISTS qor_test;"
- mysql -e "GRANT ALL PRIVILEGES ON qor_test.* TO 'qor'@'localhost' IDENTIFIED BY 'qor'"
- psql -c 'create database qor_test;' -U postgres
- psql -c "CREATE USER qor WITH ENCRYPTED PASSWORD 'qor'" -U postgres
- psql -c "GRANT ALL PRIVILEGES ON DATABASE qor_test TO qor" -U postgres
- go get -t -v ./...
script:
- go get -u github.com/goware/modvendor
- go mod vendor
- modvendor -copy="**/*.html **/*.js **/*.css **/*.tmpl **/*.ttf **/*.woff **/*.woff2" -v
- TEST_DB=postgres go test -v ./...
- TEST_DB=mysql go test -v ./...
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。